mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 23:48:39 +00:00
No need to synchronize after run_kernel()
This commit is contained in:
parent
7a8065d090
commit
8d51fca192
@ -60,21 +60,6 @@ static double try_run (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_par
|
|||||||
run_kernel (hashcat_ctx, device_param, KERN_RUN_2, 0, kernel_power_try, true, 0);
|
run_kernel (hashcat_ctx, device_param, KERN_RUN_2, 0, kernel_power_try, true, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device_param->is_cuda == true)
|
|
||||||
{
|
|
||||||
if (hc_cuStreamSynchronize (hashcat_ctx, device_param->cuda_stream) == -1) return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (device_param->is_hip == true)
|
|
||||||
{
|
|
||||||
if (hc_hipStreamSynchronize (hashcat_ctx, device_param->hip_stream) == -1) return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (device_param->is_opencl == true)
|
|
||||||
{
|
|
||||||
if (hc_clFinish (hashcat_ctx, device_param->opencl_command_queue) == -1) return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_param->spin_damp = spin_damp_sav;
|
device_param->spin_damp = spin_damp_sav;
|
||||||
|
|
||||||
const double exec_msec_prev = get_avg_exec_time (device_param, 1);
|
const double exec_msec_prev = get_avg_exec_time (device_param, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user