mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 16:38:29 +00:00
Trying to find a workaround for Issue https://github.com/hashcat/oclHashcat/issues/335
This commit is contained in:
parent
2899f53a15
commit
6ed35891f6
@ -14556,14 +14556,23 @@ int main (int argc, char **argv)
|
||||
|
||||
// we don't have sm_* on vendors not NV but it doesn't matter
|
||||
|
||||
snprintf (build_opts, sizeof (build_opts) - 1, "-cl-std=CL1.1 -I\"%s/OpenCL\" -DVENDOR_ID=%u -DCUDA_ARCH=%d -DVECT_SIZE=%u -DDEVICE_TYPE=%u -DKERN_TYPE=%u -D_unroll", shared_dir, device_param->vendor_id, (device_param->sm_major * 100) + device_param->sm_minor, device_param->vector_width, (u32) device_param->device_type, kern_type);
|
||||
#if _WIN
|
||||
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s\\OpenCL\\\" -I '%s\\OpenCL\\' -I %s\\OpenCL\\", shared_dir, shared_dir, shared_dir);
|
||||
#else
|
||||
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s/OpenCL/\" -I '%s/OpenCL/' -I %s/OpenCL/", shared_dir, shared_dir, shared_dir);
|
||||
#endif
|
||||
|
||||
char build_opts_new[1024] = { 0 };
|
||||
|
||||
snprintf (build_opts_new, sizeof (build_opts_new) - 1, "%s -DVENDOR_ID=%u -DCUDA_ARCH=%d -DVECT_SIZE=%u -DDEVICE_TYPE=%u -DKERN_TYPE=%u -D_unroll -cl-std=CL1.1", build_opts, device_param->vendor_id, (device_param->sm_major * 100) + device_param->sm_minor, device_param->vector_width, (u32) device_param->device_type, kern_type);
|
||||
|
||||
strncpy (build_opts, build_opts_new, sizeof (build_opts) - 1);
|
||||
|
||||
|
||||
if (device_param->vendor_id == VENDOR_ID_INTEL_SDK)
|
||||
{
|
||||
// we do vectorizing much better than the auto-vectorizer
|
||||
|
||||
char build_opts_new[1024] = { 0 };
|
||||
|
||||
snprintf (build_opts_new, sizeof (build_opts_new) - 1, "%s -cl-opt-disable", build_opts);
|
||||
|
||||
strncpy (build_opts, build_opts_new, sizeof (build_opts) - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user