Browse Source

opencl: Disable using binary kernels on Apple by default

Luke Dashjr 12 years ago
parent
commit
ab177eb5ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ocl.c

+ 5 - 0
ocl.c

@@ -212,7 +212,12 @@ CL_API_ENTRY cl_int CL_API_CALL
                        cl_event *       /* event */) CL_API_SUFFIX__VERSION_1_0;
 
 int opt_platform_id = -1;
+#ifdef __APPLE__
+// Apple OpenCL doesn't like using binaries this way
+bool opt_opencl_binaries;
+#else
 bool opt_opencl_binaries = true;
+#endif
 
 char *file_contents(const char *filename, int *length)
 {