Our current SDR online list: https://list.websdr.fun Paul has done a good job to list them (almost) all. The old ones keep working for some time, but links will be stopped at some point.

opencl for Intel Systems

Started by hb3xdc, Sep 02, 2024, 08:08 PM

Previous topic - Next topic

hb3xdc

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
Gianni - HB3XDC
WebSDR Lucerne
Sardinia SDR

Bas ON5HB

You forgot....run clinfo -l

If 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 ;)
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Bas ON5HB

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.

You cannot view this attachment.

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.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Bas ON5HB

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.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Bas ON5HB

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.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Bas ON5HB

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

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

alanVK2ZIW

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*'

Phil - NY4Q

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.


Bas ON5HB

#8
apt-get install intel-opencl-icd intel-gpu-tools libclfft-dev
Can also help.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Powered by EzPortal