mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-05 14:22:36 +00:00
CUDA Backend: Give detailed warning if either the NVIDIA CUDA or the NVIDIA RTC library cannot be initialized
CUDA Backend: Do not warn about missing CUDA SDK installation if --backend-ignore-cuda is used
This commit is contained in:
parent
176bbd3fb7
commit
343d3bc0aa
@ -27,6 +27,8 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
- Apple Keychain: Notify the user about the risk of collisions / false positives
|
- Apple Keychain: Notify the user about the risk of collisions / false positives
|
||||||
|
- CUDA Backend: Give detailed warning if either the NVIDIA CUDA or the NVIDIA RTC library cannot be initialized
|
||||||
|
- CUDA Backend: Do not warn about missing CUDA SDK installation if --backend-ignore-cuda is used
|
||||||
- CUDA Backend: Use blocking events to avoid 100% CPU core usage (per GPU)
|
- 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
|
- Startup time: Improved the startup time by avoiding some time intensive operations for skipped devices
|
||||||
|
|
||||||
|
@ -4929,6 +4929,9 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (rc_cuda_init == -1)
|
if (rc_cuda_init == -1)
|
||||||
{
|
{
|
||||||
|
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA CUDA library.");
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
|
||||||
cuda_close (hashcat_ctx);
|
cuda_close (hashcat_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4944,6 +4947,9 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (rc_nvrtc_init == -1)
|
if (rc_nvrtc_init == -1)
|
||||||
{
|
{
|
||||||
|
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA RTC library.");
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
|
||||||
nvrtc_close (hashcat_ctx);
|
nvrtc_close (hashcat_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6239,6 +6245,8 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
// recommend CUDA
|
// recommend CUDA
|
||||||
|
|
||||||
if ((backend_ctx->cuda == NULL) || (backend_ctx->nvrtc == NULL))
|
if ((backend_ctx->cuda == NULL) || (backend_ctx->nvrtc == NULL))
|
||||||
|
{
|
||||||
|
if (user_options->backend_ignore_cuda == false)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "* Device #%u: CUDA SDK Toolkit installation NOT detected.", device_id + 1);
|
event_log_warning (hashcat_ctx, "* Device #%u: CUDA SDK Toolkit installation NOT detected.", device_id + 1);
|
||||||
event_log_warning (hashcat_ctx, " CUDA SDK Toolkit installation required for proper device support and utilization");
|
event_log_warning (hashcat_ctx, " CUDA SDK Toolkit installation required for proper device support and utilization");
|
||||||
@ -6248,6 +6256,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// instruction set
|
// instruction set
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user