mirror of
https://github.com/hashcat/hashcat
synced 2024-11-28 05:21:38 +01:00
Set self-test kernel-thread always to 1 except it's a bitsliced algorithm in BF, this helps algorithms that set a fixed thread count on kernel function declaration
This commit is contained in:
parent
8a3ed7fe75
commit
1ef4abae70
@ -43,7 +43,11 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
|
||||
const u32 kernel_threads_by_wgs_kernel_init2_sav = device_param->kernel_threads_by_wgs_kernel_init2;
|
||||
const u32 kernel_threads_by_wgs_kernel_loop2_sav = device_param->kernel_threads_by_wgs_kernel_loop2;
|
||||
|
||||
if (hashconfig_forced_kernel_threads (hashcat_ctx) == 0)
|
||||
if ((hashconfig->opts_type & OPTS_TYPE_PT_BITSLICE) && (user_options_extra->attack_kern == ATTACK_KERN_BF))
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
else
|
||||
{
|
||||
device_param->kernel_threads_by_wgs_kernel1 = 1;
|
||||
device_param->kernel_threads_by_wgs_kernel12 = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user