OpenCL Runtime: Do not run a shared- and constant-memory size check if their memory type is of type global memory (typically CPU)

This commit is contained in:
Jens Steube
2019-06-22 16:01:38 +02:00
parent 6dfb474adf
commit 2cda236a18
2 changed files with 7 additions and 3 deletions
+6 -3
View File
@@ -6123,11 +6123,14 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
if (CL_rc == -1) return -1;
if (device_local_mem_size < 32768)
if (device_local_mem_type == CL_LOCAL)
{
event_log_error (hashcat_ctx, "* Device #%u: This device's local mem size is too small.", device_id + 1);
if (device_local_mem_size < 32768)
{
event_log_error (hashcat_ctx, "* Device #%u: This device's local mem size is too small.", device_id + 1);
device_param->skipped = true;
device_param->skipped = true;
}
}
device_param->device_local_mem_size = device_local_mem_size;