OPENCL
# To install "CL/cl.hpp" sudo apt-get install opencl-headers # To install opencl: sudo apt install ocl-icd-opencl-dev # To install cuda 10.2 sudo apt update sudo apt install cuda-10–2 sudo apt install libcudnn7 # undefined reference undefined reference to `createPlatform(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' solution: http://www.cplusplus.com/forum/beginner/63140/#:~:text=Undefined%20reference%20means%20that%20whilst,that%20actually%20does%20the%20work. g++ -O3 -I/usr/local/cuda-10.2/targets/x86_64-linux/include/ -L/usr/local/cuda-10.2/targets/x86_64-linux/lib/ -o HelloWorld HelloWorld.cpp Helper.cpp -lOpenCL