From 2d2d745b3ccd877cf0d257f3880ba6d004b917c3 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:26:55 +0100 Subject: [PATCH 01/14] Hash-Mode 9700: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09700.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 139d7f262..c43bf097f 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -25,6 +25,7 @@ - Fixed missing option flag OPTS_TYPE_SUGGEST_KG for hash-mode 11600 to inform the user about possible false positives in this mode - 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 +- Hash-Mode 9700: set native_threads to 32 with Apple GPU's ## ## Technical diff --git a/src/modules/module_09700.c b/src/modules/module_09700.c index 8e5f64b21..b951d6f92 100644 --- a/src/modules/module_09700.c +++ b/src/modules/module_09700.c @@ -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); From 688038adc6d36fe308b33bf2329e55637219ac41 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:27:50 +0100 Subject: [PATCH 02/14] Hash-Mode 9710: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09710.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index c43bf097f..8c17c118f 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -26,6 +26,7 @@ - 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 - 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 diff --git a/src/modules/module_09710.c b/src/modules/module_09710.c index 20353e48c..434e8521a 100644 --- a/src/modules/module_09710.c +++ b/src/modules/module_09710.c @@ -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); From d7ddb425e58848171d381fc1ed8e1d4d9b455c36 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:28:35 +0100 Subject: [PATCH 03/14] Hash-Mode 9720: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09720.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 8c17c118f..40eb5a55e 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -27,6 +27,7 @@ - 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 9710: set native_threads to 32 with Apple GPU's +- Hash-Mode 9720: set native_threads to 32 with Apple GPU's ## ## Technical diff --git a/src/modules/module_09720.c b/src/modules/module_09720.c index fd957a024..e859fa7fe 100644 --- a/src/modules/module_09720.c +++ b/src/modules/module_09720.c @@ -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); From 54fd3f89733e46ba160152b7af3979572572533f Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:29:36 +0100 Subject: [PATCH 04/14] Hash-Mode 9800: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09800.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 40eb5a55e..3c1a32669 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -28,6 +28,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_09800.c b/src/modules/module_09800.c index f76547a1f..ef137ac8a 100644 --- a/src/modules/module_09800.c +++ b/src/modules/module_09800.c @@ -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); From 0471725d3937ce1cc5fb0e040d1f2137f9923c1c Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:30:22 +0100 Subject: [PATCH 05/14] Hash-Mode 9810: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09810.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 3c1a32669..512888fac 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -29,6 +29,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_09810.c b/src/modules/module_09810.c index 4fb41a61d..861cf9595 100644 --- a/src/modules/module_09810.c +++ b/src/modules/module_09810.c @@ -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); From d4c264ebf13ab3a83f31f8934b9465f717b265f6 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:31:03 +0100 Subject: [PATCH 06/14] Hash-Mode 9820: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_09820.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 512888fac..78886e222 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -30,6 +30,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_09820.c b/src/modules/module_09820.c index d4782cac7..3e12913c7 100644 --- a/src/modules/module_09820.c +++ b/src/modules/module_09820.c @@ -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); From bec4b2e60134325634dfdd69401fa84c39e15af6 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:32:17 +0100 Subject: [PATCH 07/14] Hash-Mode 10400: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_10400.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 78886e222..baf2f452e 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -31,6 +31,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_10400.c b/src/modules/module_10400.c index 2cfda4397..7c86922e2 100644 --- a/src/modules/module_10400.c +++ b/src/modules/module_10400.c @@ -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); From bd8e7a2975f4809e03eae1f14d15616b514be49b Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:33:03 +0100 Subject: [PATCH 08/14] Hash-Mode 10410: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_10410.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index baf2f452e..0ad3f6147 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 diff --git a/src/modules/module_10410.c b/src/modules/module_10410.c index 02c11f4a8..cc424d865 100644 --- a/src/modules/module_10410.c +++ b/src/modules/module_10410.c @@ -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); From ff74ad5a99727cfc5f8b066e100bd1f2741d3b76 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:33:39 +0100 Subject: [PATCH 09/14] Hash-Mode 10420: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_10420.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 0ad3f6147..fe92e5917 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -33,6 +33,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_10420.c b/src/modules/module_10420.c index 5d5779c4e..263783236 100644 --- a/src/modules/module_10420.c +++ b/src/modules/module_10420.c @@ -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); From feb0bbfb758830670332de7a936affffe2f9c5d2 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:34:46 +0100 Subject: [PATCH 10/14] Hash-Mode 18200: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_18200.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index fe92e5917..0e16a0cd8 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -34,6 +34,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_18200.c b/src/modules/module_18200.c index 5db972584..85d85b946 100644 --- a/src/modules/module_18200.c +++ b/src/modules/module_18200.c @@ -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); From 5de942710d04afb676c81b9321650df5196d9fab Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 7 Jan 2022 22:35:36 +0100 Subject: [PATCH 11/14] Hash-Mode 25400: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_25400.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 0e16a0cd8..219e53b02 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -35,6 +35,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_25400.c b/src/modules/module_25400.c index c00ad420b..f75c51860 100644 --- a/src/modules/module_25400.c +++ b/src/modules/module_25400.c @@ -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); From 819cbe77b0d51a0bc1d2381ca8cc6a3ccb6633eb Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 21 Jan 2022 20:00:06 +0100 Subject: [PATCH 12/14] Hash-Mode 7500: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_07500.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 33f18643d..c84890c54 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -44,6 +44,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_07500.c b/src/modules/module_07500.c index dc12ce9de..7a7ce18e5 100644 --- a/src/modules/module_07500.c +++ b/src/modules/module_07500.c @@ -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); From c061f02d276bcfad7f22ae9d482ce0d2e3bb568f Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 21 Jan 2022 20:01:04 +0100 Subject: [PATCH 13/14] Hash-Mode 10500: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_10500.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index c84890c54..da11af67f 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -45,6 +45,7 @@ - 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 ## ## Technical diff --git a/src/modules/module_10500.c b/src/modules/module_10500.c index beaf5e8fd..70d7ee5a8 100644 --- a/src/modules/module_10500.c +++ b/src/modules/module_10500.c @@ -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); From f38aff1497f0238b6164a345ecc07a19d70e1742 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 21 Jan 2022 20:01:58 +0100 Subject: [PATCH 14/14] Hash-Mode 13100: set native_threads to 32 with Apple GPU's --- docs/changes.txt | 1 + src/modules/module_13100.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index da11af67f..d65e4a5e8 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -46,6 +46,7 @@ - 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 diff --git a/src/modules/module_13100.c b/src/modules/module_13100.c index 498bf058a..23bec5483 100644 --- a/src/modules/module_13100.c +++ b/src/modules/module_13100.c @@ -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);