If its an Intel system to enable GPU support:
1) Install dependencies
sudo apt install libclfft-dev
sudo apt install ocl-icd-opencl-dev clinfo
sudo reboot
2) Reinstall PhantomSDR+
Now you must reinstall Phantomsdr+ as its need to be recompiled after installing GPU support
save config, then delte phantomsdr dir and
git clone --recursive https://github.com/Steven9101/PhantomSDR-Plus.git
cd PhantomSDR-Plus
chmod +x *.sh
sudo ./install.sh
3) Change Config
Go into your config.toml file and change the following part:
accelerator="opencl" # Accelerator: none, cuda, opencl
4) Start Phantomsdr+ now as root or sudo
Now on you have to run PhantomSDR+ as root user, e.g:
sudo ./rx888_stream/target/release/rx888_stream -f ./rx888_stream/SDDC_FX3.img -s 58000000 -g 90 -m low -d --pga -o - | sudo build/spectrumserver --config config_rx888.toml
You forgot....run
clinfo -lIf it doesn't output something like this:
Quoteclinfo -l
Platform #0: Intel(R) OpenCL Graphics
`-- Device #0: Intel(R) HD Graphics 530
then OpenCL does not work AND should not be enabled in the config.toml ;)
I found that even when clinfo reports working OpenCL, it can be fake and not doing anything.
So install intel-gpu-tools and run intel_gpu_top it should show you usage like below.
Schermafdruk op 2024-09-09 15-18-53.png
If it doesn't show any usage at Render/3D then your OpenCL isn't working or properly installed.
Or not compiled into your websdr.
If it won't work, have a look here:
https://github.com/bashbaug/OpenCLPapers/blob/master/OpenCLOnLinux.asciidoc#troubleshooting-opencl-on-linux
Has a lot of info to help trouble-shooting.
As old Intel CPU's can be a bit hard to get working with OpenCL.
One I found, linker can't find OpenCL libs....this worked for me:
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
After it would compile with OpenCL-support.
Or try this, latest OpenCL...quite simple and install all files, it will work on any Intel that can do this:
https://github.com/intel/compute-runtime/releases
Machine: Blackview M80 with Intel N97 CPU & GPU
Fedora 41
PhantomSDR+ from ny4q
Running as a user, not root. Runs fine with accelerator="none"
Error:
Thank you for using PhantomSDR+, you are supporting the Development of an Open-Source WebSDR Project ♥
Using OpenCL
terminate called after throwing an instance of 'char const*'
I had a spare computer with the Intel HD630 and even with OpenCL installed and the compiler reporting it being there when the build ran, it was NOT working.
apt-get install intel-opencl-icd intel-gpu-tools libclfft-dev
Can also help.