1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Try to load libOpenCL.so.1 if libOpenCL.so was not found

This commit is contained in:
Jens Steube 2016-02-23 07:57:52 +01:00
parent d9fcf87e1c
commit 61f87b2981

View File

@ -73,9 +73,11 @@ int ocl_init (OCL_PTR *ocl)
ocl->lib = hc_dlopen ("/System/Library/Frameworks/OpenCL.framework/OpenCL", RTLD_NOW); ocl->lib = hc_dlopen ("/System/Library/Frameworks/OpenCL.framework/OpenCL", RTLD_NOW);
#else #else
ocl->lib = hc_dlopen ("libOpenCL.so", RTLD_NOW); ocl->lib = hc_dlopen ("libOpenCL.so", RTLD_NOW);
if (ocl->lib == NULL) ocl->lib = hc_dlopen ("libOpenCL.so.1", RTLD_NOW);
#endif #endif
if (!ocl->lib) if (ocl->lib == NULL)
{ {
log_error ("ERROR: cannot load opencl library"); log_error ("ERROR: cannot load opencl library");