Cycles / OpenCL: Fix compile error on OS X

After update to Mac OS X 10.9.1, OpenCL works now on my Intel CPU in the 2013 Macbook Pro (even the entire kernel).
The Intel Iris Pro GPU still segfaults here though, even when all flags are disabled (building "clay like" kernel only).

Maybe we need the -no-missing-prototypes for AMD hardware still, but I couldn't find a way to distuinguish here.
This commit is contained in:
Thomas Dinges 2013-12-17 09:54:36 +01:00
parent 51f5c994e9
commit 011ae78857
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static string opencl_kernel_build_options(const string& platform, const string *
build_options += "-D__KERNEL_OPENCL_NVIDIA__ -cl-nv-maxrregcount=32 -cl-nv-verbose ";
else if(platform == "Apple")
build_options += "-D__KERNEL_OPENCL_APPLE__ -Wno-missing-prototypes ";
build_options += "-D__KERNEL_OPENCL_APPLE__ ";
else if(platform == "AMD Accelerated Parallel Processing")
build_options += "-D__KERNEL_OPENCL_AMD__ ";