I'm trying to compile a set of OpenCL kernels in a C++ project on OS X El Capitan 10.11.2.
The machine used is a iMac (Retina 5K, 27-inch, Late 2015), containing a AMD Radeon R9 M395X 4096 MB that is chosen as the OpenCL device. I'm using the OpenCL framework that ships with the OS.
On a particular kernel, the OpenCL program build fails with this CL_PROGRAM_BUILD_LOG:
SC failed. No reason given.
The same kernels compile fine when choosing the CPU of the same machine as an OpenCL device or a similar machine with an Nvidia GPU.