Linux – Execute OpenCL code on the CPU

cpugpgpugpulinuxopencl

I want to execute OpenCL code on a PC which doesn't have a graphics card, nor any other hardware component which is able to execute OpenCL. Is it possible compile my OpenCL code in a way that it can be executed on the CPU in Linux? Or is it possible to simulate a GPU environment on the CPU?

Note: It's about testing whether the code works as expected, not about performance.

Best Answer

This looks like what you need, although you probably need to recompile, and the SDK linked from there appears specific to Intel CPUs; this link to AMD's documentation appears to describe the equivalent for AMD CPUs.

Related Question