How to compile OpenCL C++14 today?

I’d like to try out OpenCL C++ kernel language - I’ve paid attention to the news since 2.1 but I have no idea how to compile it as such and documentation on doing this is scarce and possibly outdated.

Ultimate goal would be running on AMD OpenCL 2.0 platform, which imagine may involve SIPR-V. I found the KhronosGroup SPIRV-LLVM project - is this the [only] way presently to get OpenCL C++ running on a CPU/GPU?

[QUOTE=nevion;40682]I’d like to try out OpenCL C++ kernel language - I’ve paid attention to the news since 2.1 but I have no idea how to compile it as such and documentation on doing this is scarce and possibly outdated.

Ultimate goal would be running on AMD OpenCL 2.0 platform, which imagine may involve SIPR-V. I found the KhronosGroup SPIRV-LLVM project - is this the [only] way presently to get OpenCL C++ running on a CPU/GPU?[/QUOTE]

If you’d like to try OpenCL C++ kernel language, you will need OpenCL 2.1 implementation at least (SPIR-V is core feature there).

You can find the OpenCL C++ compiler here: https://github.com/KhronosGroup/SPIR/tree/spirv-1.1
If the description how to build the compiler is not clear enough, please let me know and I’ll try to improve it.

This presentation should also provide some useful information: https://www.khronos.org/assets/uploads/developers/library/2016-siggraph/OpenCL-BOF-SIGGRAPH_Ju16.pdf