From 0e4b6894eec2b53cddd15c4aa8b083772d79b093 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Thu, 26 Jun 2025 22:26:31 +0200 Subject: [PATCH] module_unstable_warning only for Intel Iris Graphics on Apple Intel --- src/modules/module_10700.c | 6 +++--- src/modules/module_22500.c | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/modules/module_10700.c b/src/modules/module_10700.c index 4a7725e52..e5df902d2 100644 --- a/src/modules/module_10700.c +++ b/src/modules/module_10700.c @@ -109,11 +109,11 @@ bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE { if ((device_param->opencl_platform_vendor_id == VENDOR_ID_APPLE) && (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)) { - if (device_param->is_metal == false) + if (device_param->is_metal == true) { - if (strncmp (device_param->device_name, "Apple M", 7) == 0) + if (strncmp (device_param->device_name, "Intel", 5) == 0) { - // AppleM1, OpenCL, MTLCompilerService, createKernel never-end with pure kernel and newComputePipelineState failed with optimized kernel + // Intel Iris Graphics, Metal Version 244.303: failed to create 'm10700_loop' pipeline, timeout reached (status 49) return true; } } diff --git a/src/modules/module_22500.c b/src/modules/module_22500.c index 3bda523ad..57a70ca64 100644 --- a/src/modules/module_22500.c +++ b/src/modules/module_22500.c @@ -45,10 +45,16 @@ static const char *SIGNATURE_MULTIBIT = "$multibit$"; bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra, MAYBE_UNUSED const hc_device_param_t *device_param) { - // AppleM1, OpenCL, MTLCompilerService never-end if ((device_param->opencl_platform_vendor_id == VENDOR_ID_APPLE) && (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)) { - return true; + if (device_param->is_metal == true) + { + if (strncmp (device_param->device_name, "Intel", 5) == 0) + { + // Intel Iris Graphics, Metal Version 244.303: failed to create 'm22500_s04' pipeline, Compilation failed + return true; + } + } } return false;