[CL_BUILD_PROGRAM_FAILURE] : OpenCL Error : clBuildProgram failed: could not build program for device 0 (0x100683f70) (-44)
Break on OpenCLErrorBreak to debug.
[CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
Error while compiling the ptx module: CLH_ERROR_NO_BINARY_FOR_GPU
PTX Info log:
PTX Error log:
[CL_INVALID_PROGRAM_EXECUTABLE] : OpenCL Error : Failed to create kernel! Could not find a device with a built executable for this kernel.
Break on OpenCLErrorBreak to debug.
Running on Mac OS 10.6.2 with GeForce 9600M GT.
Any suggestions, please?
The cl_khr_local_int32_***_atomics extensions are not exported and therefore atomic operations to local memory are not supported. The GeForce 9600M GT does not support atomic operations to local memory.
The simple program can be solved if the OS is changed from Mac OS 10.6.2 to linux or windows .Usually kernel based code works best on Linux .That may be the root cause of the problem .Its better to get an insight of the problem by going through the handbook and know which versions of that particular kernel are suited for that particular OS.
The best suited solution for the problem would be to simply switch to Windows.
Some people don’t have Windows/Linux machine available. And in my experience each platform has its problems, so you may be solving one issue and creating another. Even profiler and debugger now work on Mac OS, so no need to blame it for problems.
Anyway, since I started this topic… My initial problem was that my card didn’t support local atomics, which I overlooked.