client (Unix): if libOpenCL.so isn't there, try libOpenCL.so.1

This commit is contained in:
David Anderson 2015-12-04 15:13:17 -08:00
parent 20c77d98fb
commit a41adf92ab
1 changed files with 3 additions and 0 deletions

View File

@ -180,6 +180,9 @@ void COPROCS::get_opencl(
opencl_lib = dlopen("/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL", RTLD_NOW);
#else
opencl_lib = dlopen("libOpenCL.so", RTLD_NOW);
if (!opencl_lib) {
opencl_lib = dlopen("libOpenCL.so.1", RTLD_NOW);
}
#endif
if (!opencl_lib) {
warnings.push_back("No OpenCL library found");