1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

Kernel Compile: Removed -cl-std= from all kernel build options since we're compatible to all OpenCL versions

This commit is contained in:
jsteube 2019-04-20 08:46:25 +02:00
parent f424dd1edb
commit 5f3d9e08b9
2 changed files with 4 additions and 3 deletions

View File

@ -67,6 +67,7 @@
- Binary Distribution: Removed 32 bit binary executables
- Keep Guessing: No longer automatically activate --keep-guessing for modes 9720, 9820, 14900 and 18100
- Kernel Cache: Reactivate OpenCL runtime specific kernel caches
- Kernel Compile: Removed -cl-std= from all kernel build options since we're compatible to all OpenCL versions
- Mode 16800/16801 hash format: Changed separator character from '*' to ':'
- Requirements: Update runtime check for minimum NVIDIA driver version from 367.x to 418.56 or later

View File

@ -357,7 +357,7 @@ static bool test_instruction (hashcat_ctx_t *hashcat_ctx, cl_context context, cl
#endif
#endif
CL_rc = ocl->clBuildProgram (program, 1, &device, "-cl-std=CL1.0 -Werror", NULL, NULL); // do not use the wrapper to avoid the error message
CL_rc = ocl->clBuildProgram (program, 1, &device, "-Werror", NULL, NULL); // do not use the wrapper to avoid the error message
#ifndef DEBUG
#ifndef _WIN
@ -4940,9 +4940,9 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
int build_options_len = 0;
#if defined (_WIN)
build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -cl-std=CL1.2 -I OpenCL -I \"%s\" ", folder_config->cpath_real);
build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -I OpenCL -I \"%s\" ", folder_config->cpath_real);
#else
build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -cl-std=CL1.2 -I OpenCL -I %s ", folder_config->cpath_real);
build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -I OpenCL -I %s ", folder_config->cpath_real);
#endif
// we don't have sm_* on vendors not NV but it doesn't matter