I am experiencing a segmentation fault inside the call to clBuildProgram when using the Intel platform and Intel Xenon CPU. This is for a relatively complex kernel / OpenCL program. Simple kernels build fine. I am not having any problem building the same source code on the Apple or NVIDIA platforms.
I am attaching a bug demonstration program with as simple kernel. Please private message or email me for the offending kernel source code file.
g++ -o build_bug_demo opencl_program_build.cpp bugDemoSupport.cpp -I$OPENCL_INC_DIR -L$OPENCL_LIB_DIR -lOpenCL # Here is what I see for the offending program source: ./build_bug_demo -p 2 Selected CL_PLATFORM_NAME: Intel(R) OpenCL CL_DEVICE_NAME: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz CL_DRIVER_VERSION: 1.2.0.92 Loading Source... clCreateProgramWithSource... clBuildProgram... Stack dump: 0. Running pass 'Intel OpenCL Vectorizer' on module 'Program'. 1. Running pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.sum_reduce_over_velocity_space_stage1' 2. Running pass 'Predicator' on function '@__Vectorized_.sum_reduce_over_velocity_space_stage1' Segmentation fault (core dumped)