There has been quite some “find OpenCL” code for CMake around. If you haven’t heard of CMake, it’s the most useful cross-platform tool to make cross-platform software. Put this into CMakeLists.txt, changing the names for the executable. #Minimal OpenCL CMakeLists.txt by StreamHPC…