mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
Try to load libOpenCL.so.1 if libOpenCL.so was not found
This commit is contained in:
parent
d9fcf87e1c
commit
61f87b2981
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user