mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-27 00:48:13 +00:00
Add option to force disable real SHM access to be used from within the module
This commit is contained in:
parent
bb94bf4359
commit
ddb641b843
@ -99,6 +99,11 @@
|
|||||||
#define REAL_SHM
|
#define REAL_SHM
|
||||||
#endif
|
#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
|
#ifdef REAL_SHM
|
||||||
#define SHM_TYPE LOCAL_AS
|
#define SHM_TYPE LOCAL_AS
|
||||||
#else
|
#else
|
||||||
|
@ -77,7 +77,7 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
|
|||||||
// NVIDIA GPU
|
// NVIDIA GPU
|
||||||
if (device_param->opencl_device_vendor_id == VENDOR_ID_NV)
|
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
|
// AMD-GPU-PRO
|
||||||
|
Loading…
Reference in New Issue
Block a user