mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 19:01:09 +00:00
Hardware Management: Bring back kernel exec timeout detection for NVidia on user request
This commit is contained in:
parent
5ec763fa20
commit
c3251cebd8
@ -71,6 +71,7 @@
|
|||||||
- Hardware Monitor: Fixed several memory leaks in case hash-file writing (caused by --remove) failed
|
- Hardware Monitor: Fixed several memory leaks in case hash-file writing (caused by --remove) failed
|
||||||
- Hardware Monitor: Fixed several memory leaks in case no hardware monitor sensor is found
|
- Hardware Monitor: Fixed several memory leaks in case no hardware monitor sensor is found
|
||||||
- Hardware Monitor: In case NVML initialization failed, do not try to initialiaze NVAPI or XNVCTRL because they both depend on NVML
|
- Hardware Monitor: In case NVML initialization failed, do not try to initialiaze NVAPI or XNVCTRL because they both depend on NVML
|
||||||
|
- Hardware Management: Bring back kernel exec timeout detection for NVidia on user request
|
||||||
- Hash Parsing: Added additional bound checks for the SIP digest authentication (MD5) parser (-m 11400)
|
- Hash Parsing: Added additional bound checks for the SIP digest authentication (MD5) parser (-m 11400)
|
||||||
- Hash Parsing: Make sure that all files are correctly closed whenever a hash file parsing error occurs
|
- Hash Parsing: Make sure that all files are correctly closed whenever a hash file parsing error occurs
|
||||||
- Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
|
- Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
|
||||||
|
@ -878,6 +878,7 @@ typedef struct hc_device_param
|
|||||||
|
|
||||||
u32 sm_major;
|
u32 sm_major;
|
||||||
u32 sm_minor;
|
u32 sm_minor;
|
||||||
|
u32 kernel_exec_timeout;
|
||||||
|
|
||||||
u8 pcie_bus;
|
u8 pcie_bus;
|
||||||
u8 pcie_device;
|
u8 pcie_device;
|
||||||
|
14
src/opencl.c
14
src/opencl.c
@ -2983,6 +2983,14 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
device_param->sm_minor = sm_minor;
|
device_param->sm_minor = sm_minor;
|
||||||
device_param->sm_major = sm_major;
|
device_param->sm_major = sm_major;
|
||||||
|
|
||||||
|
cl_uint kernel_exec_timeout = 0;
|
||||||
|
|
||||||
|
CL_rc = hc_clGetDeviceInfo (hashcat_ctx, device_param->device, CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV, sizeof (kernel_exec_timeout), &kernel_exec_timeout, NULL);
|
||||||
|
|
||||||
|
if (CL_rc == -1) return -1;
|
||||||
|
|
||||||
|
device_param->kernel_exec_timeout = kernel_exec_timeout;
|
||||||
|
|
||||||
// CPU burning loop damper
|
// CPU burning loop damper
|
||||||
// Value is given as number between 0-100
|
// Value is given as number between 0-100
|
||||||
// By default 100%
|
// By default 100%
|
||||||
@ -3101,6 +3109,12 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "* Device #%u: Old CUDA compute capability %u.%u detected, OpenCL performance is reduced.", device_id + 1, device_param->sm_major, device_param->sm_minor);
|
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "* Device #%u: Old CUDA compute capability %u.%u detected, OpenCL performance is reduced.", device_id + 1, device_param->sm_major, device_param->sm_minor);
|
||||||
if (user_options->quiet == false) event_log_warning (hashcat_ctx, " For ideal hashcat performance on NVIDIA GPU you need CUDA compute capability 5.0 or higher (Maxwell)");
|
if (user_options->quiet == false) event_log_warning (hashcat_ctx, " For ideal hashcat performance on NVIDIA GPU you need CUDA compute capability 5.0 or higher (Maxwell)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_param->kernel_exec_timeout != 0)
|
||||||
|
{
|
||||||
|
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled, it might cause you errors of code CL_OUT_OF_RESOURCES", device_id + 1);
|
||||||
|
if (user_options->quiet == false) event_log_warning (hashcat_ctx, " See the wiki on how to disable it: https://hashcat.net/wiki/doku.php?id=timeout_patch");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((strstr (device_param->device_opencl_version, "beignet")) || (strstr (device_param->device_version, "beignet")))
|
if ((strstr (device_param->device_opencl_version, "beignet")) || (strstr (device_param->device_version, "beignet")))
|
||||||
|
Loading…
Reference in New Issue
Block a user