1
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:
Jens Steube 2020-08-31 13:35:57 +02:00
parent fb448b6eb6
commit 6a419d068c
2 changed files with 3 additions and 2 deletions

View File

@ -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
##

View File

@ -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;
}
/**