mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-25 09:22:36 +00:00
Fix minimum threads_per_block check
This commit is contained in:
parent
0568c0746a
commit
c2fc849e2c
@ -1327,7 +1327,7 @@ int hc_cuModuleLoadDataExLog (hashcat_ctx_t *hashcat_ctx, CUmodule *module, cons
|
|||||||
|
|
||||||
int opts_cnt = 6;
|
int opts_cnt = 6;
|
||||||
|
|
||||||
if (threads_per_block)
|
if ((threads_per_block > 0) && (threads_per_block < 1024))
|
||||||
{
|
{
|
||||||
opts[6] = CU_JIT_THREADS_PER_BLOCK;
|
opts[6] = CU_JIT_THREADS_PER_BLOCK;
|
||||||
vals[6] = (void *) threads_per_block;
|
vals[6] = (void *) threads_per_block;
|
||||||
|
Loading…
Reference in New Issue
Block a user