diff --git a/OpenCL/inc_vendor.h b/OpenCL/inc_vendor.h index cbaf093f5..6ca2c5707 100644 --- a/OpenCL/inc_vendor.h +++ b/OpenCL/inc_vendor.h @@ -99,6 +99,11 @@ #define REAL_SHM #endif +// So far, only used by -m 22100 and only affects NVIDIA on OpenCL. CUDA seems to work fine. +#ifdef FORCE_DISABLE_SHM +#undef REAL_SHM +#endif + #ifdef REAL_SHM #define SHM_TYPE LOCAL_AS #else diff --git a/src/modules/module_22100.c b/src/modules/module_22100.c index 3c610f5c5..afbc29550 100644 --- a/src/modules/module_22100.c +++ b/src/modules/module_22100.c @@ -77,7 +77,7 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY // NVIDIA GPU if (device_param->opencl_device_vendor_id == VENDOR_ID_NV) { - hc_asprintf (&jit_build_options, "-D _unroll"); + hc_asprintf (&jit_build_options, "-D _unroll -D FORCE_DISABLE_SHM"); } // AMD-GPU-PRO