98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
18 lines
797 B
Diff
18 lines
797 B
Diff
diff --git a/src/opencl_generate_dynamic_loader.py b/src/opencl_generate_dynamic_loader.py
|
|
index 790705330..2acedbc56 100755
|
|
--- a/src/opencl_generate_dynamic_loader.py
|
|
+++ b/src/opencl_generate_dynamic_loader.py
|
|
@@ -134,12 +134,7 @@ static void load_opencl_dll(void)
|
|
|
|
/* Names to try to load */
|
|
const char * const opencl_names[] = {
|
|
- "libOpenCL.so", /* Linux/others, hack via "development" sub-package's symlink */
|
|
- "OpenCL", /* _WIN */
|
|
- "/System/Library/Frameworks/OpenCL.framework/OpenCL", /* __APPLE__ */
|
|
- "opencl.dll", /* __CYGWIN__ */
|
|
- "cygOpenCL-1.dll", /* __CYGWIN__ */
|
|
- "libOpenCL.so.1" /* Linux/others, no "development" sub-package installed */
|
|
+ "@ocl_icd@/lib/libOpenCL.so" /* NixOS */
|
|
};
|
|
|
|
for (i = 0; i < sizeof(opencl_names)/sizeof(opencl_names[0]); i++) {
|