mirror of
https://github.com/hashcat/hashcat
synced 2025-05-09 02:52:15 +02:00
CUDA Backend: Do not warn about missing CUDA SDK installation if --stdout is used
This commit is contained in:
parent
0ba1558e17
commit
fe91f6276d
@ -1,5 +1,15 @@
|
|||||||
* changes v6.2.1 -> v6.x.x
|
* changes v6.2.1 -> v6.x.x
|
||||||
|
|
||||||
|
##
|
||||||
|
## Improvements
|
||||||
|
##
|
||||||
|
|
||||||
|
- CUDA Backend: Do not warn about missing CUDA SDK installation if --stdout is used
|
||||||
|
|
||||||
|
##
|
||||||
|
## Technical
|
||||||
|
##
|
||||||
|
|
||||||
- Dependencies: Updated LZMA SDK from 19.00 to 21.02 alpha
|
- Dependencies: Updated LZMA SDK from 19.00 to 21.02 alpha
|
||||||
- Dependencies: Updated xxHash from 0.1.0 to v0.8.0 - Stable XXH3
|
- Dependencies: Updated xxHash from 0.1.0 to v0.8.0 - Stable XXH3
|
||||||
|
|
||||||
|
@ -6611,39 +6611,43 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
|
|
||||||
device_param->spin_damp = (double) user_options->spin_damp / 100;
|
device_param->spin_damp = (double) user_options->spin_damp / 100;
|
||||||
|
|
||||||
// recommend CUDA
|
|
||||||
|
|
||||||
if ((backend_ctx->cuda == NULL) || (backend_ctx->nvrtc == NULL))
|
if (user_options->stdout_flag == false)
|
||||||
{
|
{
|
||||||
if (user_options->backend_ignore_cuda == false)
|
// recommend CUDA
|
||||||
|
|
||||||
|
if ((backend_ctx->cuda == NULL) || (backend_ctx->nvrtc == NULL))
|
||||||
{
|
{
|
||||||
if (backend_ctx->rc_cuda_init == -1)
|
if (user_options->backend_ignore_cuda == false)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA CUDA library.");
|
if (backend_ctx->rc_cuda_init == -1)
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
{
|
||||||
}
|
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA CUDA library.");
|
||||||
else
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
{
|
}
|
||||||
event_log_warning (hashcat_ctx, "Successfully initialized NVIDIA CUDA library.");
|
else
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
{
|
||||||
}
|
event_log_warning (hashcat_ctx, "Successfully initialized NVIDIA CUDA library.");
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (backend_ctx->rc_nvrtc_init == -1)
|
||||||
|
{
|
||||||
|
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA RTC library.");
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
event_log_warning (hashcat_ctx, "Successfully initialized NVIDIA RTC library.");
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
event_log_warning (hashcat_ctx, "* Device #%u: CUDA SDK Toolkit installation NOT detected or incorrectly installed.", device_id + 1);
|
||||||
|
event_log_warning (hashcat_ctx, " CUDA SDK Toolkit installation required for proper device support and utilization");
|
||||||
|
event_log_warning (hashcat_ctx, " Falling back to OpenCL Runtime");
|
||||||
|
|
||||||
if (backend_ctx->rc_nvrtc_init == -1)
|
|
||||||
{
|
|
||||||
event_log_warning (hashcat_ctx, "Failed to initialize NVIDIA RTC library.");
|
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
event_log_warning (hashcat_ctx, "Successfully initialized NVIDIA RTC library.");
|
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
event_log_warning (hashcat_ctx, "* Device #%u: CUDA SDK Toolkit installation NOT detected or incorrectly installed.", device_id + 1);
|
|
||||||
event_log_warning (hashcat_ctx, " CUDA SDK Toolkit installation required for proper device support and utilization");
|
|
||||||
event_log_warning (hashcat_ctx, " Falling back to OpenCL Runtime");
|
|
||||||
|
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user