CUDA Backend: Use blocking events to avoid 100% CPU core usage (per GPU)

pull/2543/head
Jens Steube 4 years ago
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…
Cancel
Save