1
mirror of https://github.com/hashcat/hashcat synced 2024-11-28 05:21:38 +01: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);
#else
ocl->lib = hc_dlopen ("libOpenCL.so", RTLD_NOW);
if (ocl->lib == NULL) ocl->lib = hc_dlopen ("libOpenCL.so.1", RTLD_NOW);
#endif
if (!ocl->lib)
if (ocl->lib == NULL)
{
log_error ("ERROR: cannot load opencl library");