I downloaded intel_sdk_for_opencl_2016_ubuntu_6.0.0.1049_x64
, tried to run install.sh
but it says Unsupported OS, so I then read somewhere that I needed to make .deb file from one of the RPM files, I did it with 2:
opencl-1.2-devel_6.0.0.1049-2_amd64.deb
opencl-1.2-intel-devel_6.0.0.1049-2_amd64.deb
Installed them both with sudo dpkg -i
, but I still don't have the libOpenCL.so that I need
Now I'm stuck... :(
It looks like
libOpenCL.so
is provided by theocl-icd-opencl-dev
package. To install this package, run:Now libOpenCL.so should be located at
/usr/lib/x86_64-linux-gnu/libOpenCL.so
The way, suggested by Nick Weinberg, installs a pretty outdated version of the driver, therefore I would suggest to download the one directly from your hardware vendor.
Since you have Intel CPU, do the following
Download this archive and install it as follows.
This installation script will write a lot of libraries into
/opt/intel
and will create a symbolic link (or replace the old one)/usr/lib/x86_64-linux-gnu/libOpenCL.so
.My understanding of the subject is that the above steps allow OpenCL to access your Intel CPU. But if you have Intel HD Graphics, it makes sense to allow OpenCL to use this integrated graphics too. Then do the following
Follow instructions given over there. I've just copied these here with one fix - use
sudo apt
instead ofsudo dpkg -i *.deb
sincedpkg
does not check dependencies:Note that
.
in./*deb
is important: without this dot you will getUnable to locate
andCouldn't find
errors.P.S. the Intel website lists the suitable CPUs, make sure that yours is in this list.
I wanted to get OpenCL working for darktable on Ubuntu 19.04 x64.
Initially
darktable-cltest
reportsBut after
sudo apt-get install intel-opencl-icd
it is working fine.This thread: https://einsteinathome.org/content/quick-guide-how-install-opencl-amd-gpus-linux-kubuntu-1804-and-similar-distro resolved my problem.
I had to do this in addition to installing the
ocl-icd-opencl-dev
package.