Phoronix: A New OpenCL Back-End For LLVM Is Published
Besides the open-source AMD Radeon support for OpenCL finally taking shape, there's more good open-source OpenCL news: a newly open-sourced LLVM OpenCL back-end...
So, you write something in C++, and instead of compiling it for x86, you compile it for OpenCL and run it on the GPU?
Does this mean that we're a step closer to applications automatically utilizing both the CPU and GPU at runtime?
I do not quite understand the usefulness of such a project. So you are compiling whatever comes from a LLVM frontend to OpenCL code and run it on a GPU. For which reason? So you can transform code from any language to OpenCL code instead of writing OpenCL code in the first place?
Also, you cannot just take code you wrote for a CPU and expect magic 100x speedup. Coding for a GPU is completely different. You need completely different algorithms to solve your problems and you need exact knowledge about the memory layout and capabilities for accessing memory addresses of your GPU. I'm not sure if this is what a LLVM backend can hide from you...