Please do not post questions in the shout-box as it will be lost in a few days. Open your own topic in the appropriate section. Thank you.

Opencl on Archlinux (wrong opencl.hpp file)

Started by linkz, Sep 03, 2024, 10:57 PM

Previous topic - Next topic

linkz

In my daily Archlinux setup I had issues compiling spectrumserver with opencl feature, It took me a few hours to find the solution...
All necessary packages were installed normally with the pacman package manager, up-to-date of course.
Except clFFT or clFFT-git installed using the AUR way

But many compilation errors around "c::" entries, apparently not declared so compilation just stop.

----
The problem was an OpenCL API binding file, which was obsolete: opencl.hpp

If that can help people, the up-to-date file is available on github

It has to be located in /usr/include/CL

You may also need clBLAS.h in /usr/include


PS: I'm using Nvidia GTX-970 video card in the machine running PhantomSDR-Plus

Regards
linkz

Powered by EzPortal