From: Gabriele 'matrix' Gristina Date: Mon, 25 Jan 2016 14:44:04 +0000 (+0100) Subject: OpenCL runtime environment is no longer required with --keyspace option X-Git-Tag: v3.00-beta~455^2~1 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=11246872704158c613826f3ec8e9f333171f85df;p=hashcat.git OpenCL runtime environment is no longer required with --keyspace option --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index bd68983..55357dc 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -12485,13 +12485,16 @@ int main (int argc, char **argv) cl_uint platform_devices_cnt; - hc_clGetPlatformIDs (CL_PLATFORMS_MAX, platforms, &platforms_cnt); - - if (platforms_cnt == 0) + if (keyspace == 0) // matrix { - log_error ("ERROR: No OpenCL compatible platform found"); + hc_clGetPlatformIDs (CL_PLATFORMS_MAX, platforms, &platforms_cnt); - return (-1); + if (platforms_cnt == 0) + { + log_error ("ERROR: No OpenCL compatible platform found"); + + return (-1); + } } /** @@ -12858,7 +12861,7 @@ int main (int argc, char **argv) } } - if (devices_active == 0) + if (keyspace == 0 && devices_active == 0) { log_error ("ERROR: No devices found/left");