I have a particular OpenCL program that is revealing a bug with clBuildProgam for AMD CPU device. After several recent code changes, my OpenCL kernel/program will compile just fine on Apple and NVIDIA platforms, but a Segmentation Fault is created within clBuildProgram on AMD Platform / CPU device.
It is hard to guess what might be the problem. I considered this a bug with the APP SDK. I am attaching a simple bug demonstration program, but I would prefer to send you the offending kernel source code by private message or email.
g++ -o build_bug_demo opencl_program_build.cpp bugDemoSupport.cpp -I $AMDAPPSDKROOT/include -L $AMDAPPSDKROOT/lib/x86_64 -lOpenCL
(Or perhaps specify -p option to specify the platform if not first platform. Or -h for help)
Again, the files attached will build a very simple kernel. Please message me for the actual offending openCL source code.
(I have also tried this with AMD APP SDK 2.9.1 (version 1445.5) with the same results.)
Selected CL_PLATFORM_NAME: AMD Accelerated Parallel Processing
CL_DEVICE_NAME: AMD Opteron(tm) Processor 6140
CL_DRIVER_VERSION: 1214.3 (sse2)