From 61f87b29811c92fd61074632c6cc91f27d210f13 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Tue, 23 Feb 2016 07:57:52 +0100 Subject: [PATCH] Try to load libOpenCL.so.1 if libOpenCL.so was not found --- src/ext_OpenCL.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ext_OpenCL.c b/src/ext_OpenCL.c index 65c594c03..f43815a77 100644 --- a/src/ext_OpenCL.c +++ b/src/ext_OpenCL.c @@ -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");