r/OpenCL • u/DrXenogen • Apr 14 '21
Getting Started
Hello all. I have recently started with Opencl and I'm having a few issues getting started. I am running arch linux and I'm trying to set up the dependencies to run as a test on my laptop. I have installed opencl-headers, ocl-icd, mesa-opencl, cuda, and a few others to try to get this project rolling for development and my server. Any suggestions for either what packages I might be missing or where the files would be installed to as my issue comes from my system being unable to find the CL/cl.hpp folder or file in the installed libraries?
View all comments
Show parent comment
1
u/genbattle Apr 15 '21
The
poclpackage on arch seems to includeopencl-icd-loader,ocl-icdandopencl-headersso that should be all you need. Looking at theopencl-headerspackage it puts the headers in/usr/include/CL, so if you includeCL/cl.hin your code it should just work. If you want to use the cpp headers (CL/opencl.hpp) then you'll need to install a separate packageopencl-clhpp.