From 2cda236a183576fc2ebd7c3384f076fae28e7884 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 22 Jun 2019 16:01:38 +0200 Subject: [PATCH] OpenCL Runtime: Do not run a shared- and constant-memory size check if their memory type is of type global memory (typically CPU) --- docs/changes.txt | 1 + src/backend.c | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 53a5232b2..62251b1df 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -70,6 +70,7 @@ - OpenCL Runtime: Workaround JiT compiler error on ROCM 2.3 driver if the 'inline' keyword is used in function declaration - OpenCL Runtime: Workaround memory allocation error on AMD driver on Windows leading to CL_MEM_OBJECT_ALLOCATION_FAILURE - OpenCL Runtime: Workaround ROCm OpenCL driver problem trying to write temporary file into readonly folder by setting TMPDIR +- OpenCL Runtime: Do not run a shared- and constant-memory size check if their memory type is of type global memory (typically CPU) - Startup Screen: Provide an estimate of host memory requirements for the requested attack - Tuning Database: Updated hashcat.hctune with new models and refreshed vector width values - WPA/WPA2 cracking: In the potfile, replace password with PMK in order to detect already cracked networks across all WPA modes diff --git a/src/backend.c b/src/backend.c index fa27ebba2..9829efa5c 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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;