1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Hash-Mode 9710: set native_threads to 32 with Apple GPU's

This commit is contained in:
Gabriele Gristina 2022-01-07 22:27:50 +01:00
parent 2d2d745b3c
commit 688038adc6
2 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- Fixed undefined function call to hc_byte_perm_S() in hash-mode 17010 on non-CUDA compute devices - Fixed undefined function call to hc_byte_perm_S() in hash-mode 17010 on non-CUDA compute devices
- Fixed wordlist handling in -m 3000 when candidate passwords use the $HEX[...] syntax - Fixed wordlist handling in -m 3000 when candidate passwords use the $HEX[...] syntax
- Hash-Mode 9700: set native_threads to 32 with Apple GPU's - Hash-Mode 9700: set native_threads to 32 with Apple GPU's
- Hash-Mode 9710: set native_threads to 32 with Apple GPU's
## ##
## Technical ## Technical

View File

@ -69,6 +69,12 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
} }
else if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU) else if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)
{ {
#if defined (__APPLE__)
native_threads = 32;
#else
if (device_param->device_local_mem_size < 49152) if (device_param->device_local_mem_size < 49152)
{ {
native_threads = MIN (device_param->kernel_preferred_wgs_multiple, 32); // We can't just set 32, because Intel GPU need 8 native_threads = MIN (device_param->kernel_preferred_wgs_multiple, 32); // We can't just set 32, because Intel GPU need 8
@ -77,6 +83,8 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
{ {
native_threads = device_param->kernel_preferred_wgs_multiple; native_threads = device_param->kernel_preferred_wgs_multiple;
} }
#endif
} }
hc_asprintf (&jit_build_options, "-D FIXED_LOCAL_SIZE=%u -D _unroll", native_threads); hc_asprintf (&jit_build_options, "-D FIXED_LOCAL_SIZE=%u -D _unroll", native_threads);