mirror of
https://github.com/hashcat/hashcat
synced 2024-11-20 23:27:31 +01:00
CUDA Backend: Use blocking events to avoid 100% CPU core usage (per GPU)
This commit is contained in:
parent
fb448b6eb6
commit
6a419d068c
@ -27,6 +27,7 @@
|
||||
##
|
||||
|
||||
- Apple Keychain: Notify the user about the risk of collisions / false positives
|
||||
- CUDA Backend: Use blocking events to avoid 100% CPU core usage (per GPU)
|
||||
- Startup time: Improved the startup time by avoiding some time intensive operations for skipped devices
|
||||
|
||||
##
|
||||
|
@ -7831,9 +7831,9 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (device_param->is_cuda == true)
|
||||
{
|
||||
if (hc_cuEventCreate (hashcat_ctx, &device_param->cuda_event1, CU_EVENT_DEFAULT) == -1) return -1;
|
||||
if (hc_cuEventCreate (hashcat_ctx, &device_param->cuda_event1, CU_EVENT_BLOCKING_SYNC) == -1) return -1;
|
||||
|
||||
if (hc_cuEventCreate (hashcat_ctx, &device_param->cuda_event2, CU_EVENT_DEFAULT) == -1) return -1;
|
||||
if (hc_cuEventCreate (hashcat_ctx, &device_param->cuda_event2, CU_EVENT_BLOCKING_SYNC) == -1) return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user