From f08fe1fe90e28ab8bbc6b4b65a8a23dd2f517bbb Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 20 Mar 2019 09:40:34 +0100 Subject: [PATCH] Use advanced memory allocation only on NV and AMD --- src/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opencl.c b/src/opencl.c index 76161cfa0..a714cb3c5 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3971,7 +3971,7 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) device_param->device_available_mem = device_param->device_global_mem - MAX_ALLOC_CHECKS_SIZE; - if (device_param->device_type & CL_DEVICE_TYPE_GPU) + if ((device_param->device_type & CL_DEVICE_TYPE_GPU) && ((device_param->platform_vendor_id == VENDOR_ID_NV) || (device_param->platform_vendor_id == VENDOR_ID_AMD))) { // OK, so the problem here is the following: // There's just CL_DEVICE_GLOBAL_MEM_SIZE to ask OpenCL about the total memory on the device,