Update CMakeList to use FindCuda, FindOCL
Closed this issue · 3 comments
Responding to ShadenSmith's updates and PR to improve OpenMP compatibility across platforms, we should also use FindCUDA and FindOpenCL to include these libraries.
Test with CUDA 10.0, Intel OCL, CUDA OCL, and possibly Intel FPGA SDK backend
https://cmake.org/cmake/help/v3.0/module/FindCUDA.html
https://cmake.org/cmake/help/v3.1/module/FindOpenCL.html
Let's test with "FindCUDAToolkit" for now on quorra1.
https://cmake.org/cmake/help/latest/module/FindCUDA.html
Not clear how relevant standard OpenCL is these days but it would be good to add this function just in case. We
https://cmake.org/cmake/help/latest/module/FindOpenCL.html
I think we may just test for FindCUDA for the moment. Pull Request #122 supports CUDA which may be more important for the short-term.
Addressed by #145 and the addition of the following strings to CMakeLists.txt:
enable_language(CUDA)
find_package(CUDAToolkit)