mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-13 19:28:56 +00:00
Merge pull request #3113 from matrix/apple_gpu_modules_native_threads
Set native_threads to 32 with Apple GPU's on multiple hash modules
This commit is contained in:
commit
d85f86373c
@ -34,6 +34,20 @@
|
||||
- Fixed Unit Test salt-max in case of optimized kernel, with hash-type 22 and 23
|
||||
- Fixed Unit Test false negative if there are spaces in the filesystem path to hashcat
|
||||
- Fixed --hash-info example password output: force uppercase if OPTS_TYPE_PT_UPPER is set
|
||||
- Hash-Mode 9700: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 9710: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 9720: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 9800: set native_threads to 32 with Apple GPU's
|
||||
- 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
|
||||
- Hash-Mode 10420: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 18200: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 25400: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 7500: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 10500: set native_threads to 32 with Apple GPU's
|
||||
- Hash-Mode 13100: set native_threads to 32 with Apple GPU's
|
||||
|
||||
##
|
||||
## Technical
|
||||
|
@ -66,6 +66,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
|
||||
@ -74,6 +80,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);
|
||||
|
@ -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)
|
||||
{
|
||||
#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
|
||||
@ -77,6 +83,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);
|
||||
|
@ -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)
|
||||
{
|
||||
#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
|
||||
@ -77,6 +83,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);
|
||||
|
@ -70,6 +70,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
|
||||
@ -78,6 +84,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);
|
||||
|
@ -71,6 +71,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
|
||||
@ -79,6 +85,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);
|
||||
|
@ -70,6 +70,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
|
||||
@ -78,6 +84,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);
|
||||
|
@ -72,6 +72,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
|
||||
@ -80,6 +86,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);
|
||||
|
@ -76,6 +76,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
|
||||
@ -84,6 +90,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);
|
||||
|
@ -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);
|
||||
|
@ -76,6 +76,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
|
||||
@ -84,6 +90,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);
|
||||
|
@ -100,6 +100,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
|
||||
@ -108,6 +114,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);
|
||||
|
@ -64,6 +64,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
|
||||
@ -72,6 +78,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);
|
||||
|
@ -64,6 +64,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
|
||||
@ -72,6 +78,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);
|
||||
|
@ -104,6 +104,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
|
||||
@ -112,6 +118,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