From 5f3d9e08b9337c078a6080cabc440f18b50cdc61 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 20 Apr 2019 08:46:25 +0200 Subject: [PATCH] Kernel Compile: Removed -cl-std= from all kernel build options since we're compatible to all OpenCL versions --- docs/changes.txt | 1 + src/opencl.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index bc612d8ab..72b651835 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 diff --git a/src/opencl.c b/src/opencl.c index 2cbf1fdd8..73f13c5d1 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -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