mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
Hash-Mode 10410: set native_threads to 32 with Apple GPU's
This commit is contained in:
parent
bec4b2e601
commit
bd8e7a2975
@ -32,6 +32,7 @@
|
||||
- Hash-Mode 9810: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 9820: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 10400: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 10410: set native_threads to 32 with Apple GPU's
|
||||
|
||||
##
|
||||
## Technical
|
||||
|
@ -77,6 +77,12 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
|
||||
}
|
||||
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)
|
||||
{
|
||||
native_threads = MIN (device_param->kernel_preferred_wgs_multiple, 32); // We can't just set 32, because Intel GPU need 8
|
||||
@ -85,6 +91,8 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
|
||||
{
|
||||
native_threads = device_param->kernel_preferred_wgs_multiple;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
hc_asprintf (&jit_build_options, "-D FIXED_LOCAL_SIZE=%u -D _unroll", native_threads);
|
||||
|
Loading…
Reference in New Issue
Block a user