Workaround added for NVidia NVML library: If libnvidia-ml.so couldn't be load try again using libnvidia-ml.so.1

This commit is contained in:
jsteube
2017-05-17 11:21:06 +02:00
parent 974128bdce
commit bb2118a290
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -17,6 +17,12 @@
- Rules: Support added for rule 'eX'
- Rules: Support added for position 'p' in host mode (using -j or -k)
##
## Workarounds
##
- Workaround added for NVidia NVML library: If libnvidia-ml.so couldn't be load try again using libnvidia-ml.so.1
##
## Improvements
##
+8
View File
@@ -552,6 +552,7 @@ static int nvml_init (hashcat_ctx_t *hashcat_ctx)
memset (nvml, 0, sizeof (NVML_PTR));
#if defined (_WIN)
nvml->lib = hc_dlopen ("nvml.dll");
if (!nvml->lib)
@@ -641,7 +642,14 @@ static int nvml_init (hashcat_ctx_t *hashcat_ctx)
}
#elif defined (_POSIX)
nvml->lib = hc_dlopen ("libnvidia-ml.so", RTLD_NOW);
if (!nvml->lib)
{
nvml->lib = hc_dlopen ("libnvidia-ml.so.1", RTLD_NOW);
}
#endif
if (!nvml->lib)