1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 18:08:20 +00:00

OpenCL Runtime: Set OpenCL build option -O2 fixed for ROCm and AMDGPU-PRO using AMD_OCL_BUILD_OPTIONS_APPEND

This commit is contained in:
jsteube 2017-08-31 15:25:19 +02:00
parent d3b9febb30
commit 8ee75141ea
2 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,7 @@
- OpenCL Kernels: Removed some include functions that are no longer needed to reduce compile time - OpenCL Kernels: Removed some include functions that are no longer needed to reduce compile time
- OpenCL Runtime: Fall back to 64 threads default (from 256) on AMD GPU to prevent creating too many workitems - OpenCL Runtime: Fall back to 64 threads default (from 256) on AMD GPU to prevent creating too many workitems
- OpenCL Runtime: Forcing OpenCL 1.2 no longer needed. Option removed from build options - OpenCL Runtime: Forcing OpenCL 1.2 no longer needed. Option removed from build options
- OpenCL Runtime: Set OpenCL build option -O2 fixed for ROCm and AMDGPU-PRO using AMD_OCL_BUILD_OPTIONS_APPEND
- Restore: Fixed the version number used in the restore file header - Restore: Fixed the version number used in the restore file header
- Time: added new type for time measurements hc_time_t and related functions to force the use of 64 bit times - Time: added new type for time measurements hc_time_t and related functions to force the use of 64 bit times

View File

@ -334,6 +334,10 @@ void setup_environment_variables ()
putenv ((char *) "DISPLAY=:0"); putenv ((char *) "DISPLAY=:0");
} }
//We need to force this
//if (getenv ("AMD_OCL_BUILD_OPTIONS_APPEND") == NULL)
putenv ((char *) "AMD_OCL_BUILD_OPTIONS_APPEND=-O2");
if (getenv ("OCL_CODE_CACHE_ENABLE") == NULL) if (getenv ("OCL_CODE_CACHE_ENABLE") == NULL)
putenv ((char *) "OCL_CODE_CACHE_ENABLE=0"); putenv ((char *) "OCL_CODE_CACHE_ENABLE=0");