Closed aditikau closed 2 years ago
In the /usr/include dir CL/cl.hpp is present instead of CL/opencl.hpp
Recent commit in hpp_header build https://github.com/krrishnarraj/clpeak (clpeak/cmake/BuildCLHpp.cmake) is cl.hpp is changed to opencl.hpp.
If reverted that commit(db42d30028bace27cda3c7d95f122a5c14743246) from clpeak dir and it worked.
git clone https://github.com/krrishnarraj/clpeak
cd clpeak
git submodule update --init --recursive --remote
git revert db42d30028bace27cda3c7d95f122a5c14743246 #this commit is related to cl.hpp to opencl.hpp change
rm -rf build; mkdir build; cd build
cmake ..
cmake --build .
There is a potential fix based on comments in https://github.com/KhronosGroup/OpenCL-CLHPP/issues/173 Check if the current dev branch is working for you. It will be merged to master after further testing
Thanks! @krrishnarraj, dev branch is working fine.
Steps followed :
Cmake Error Trace :