How do I install OpenCL?

Kernels & Hardware, configuring network, installing services

How do I install OpenCL?

Postby kerryhall » 2020-03-05 20:49

Trying to get folding at home working.

When running the FAH client I'm seeing the error:
Code: Select all
OpenCL device matching slot 1 not found


I'm 95% sure I never installed anything OpenCL related, so I'm guessing I have to do that.

I'm running the nvidia driver installed from the repos, version 418.74.

What packages do I need to install to get OpenCL working?

Is there a "hello world" type program I can run to confirm OpenCL is working? (ie maybe something like glxgears?)
kerryhall
 
Posts: 159
Joined: 2008-08-19 11:06

Re: How do I install OpenCL?

Postby Bulkley » 2020-03-05 21:37

My guess is
Code: Select all
# apt-get install boinc-client-opencl


I got this by doing a Debian package search here.
Bulkley
 
Posts: 5929
Joined: 2006-02-11 18:35

Re: How do I install OpenCL?

Postby kerryhall » 2020-03-05 23:24

Unfortunately that installed the old nvidia legacy driver and built a kernel module for it.

Luckily I managed to back out and after rebooting confirmed 418.74 is still running.

I absolutely do not want to break my current video driver.
Last edited by kerryhall on 2020-03-05 23:30, edited 1 time in total.
kerryhall
 
Posts: 159
Joined: 2008-08-19 11:06

Re: How do I install OpenCL?

Postby stevepusser » 2020-03-05 23:27

It's really nvidia-opencl-icd--at least that's what I needed to get it working with the openCL enabled versions of mandelbulber2.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.6, Strawberry 0.6.11, Muse 3.1.0, Chromium with va-api, Audacity 2.4.1, Kdenlive 20.04
User avatar
stevepusser
 
Posts: 11692
Joined: 2009-10-06 05:53

Re: How do I install OpenCL?

Postby kerryhall » 2020-03-05 23:32

Thank you! That did the trick!

The output of clinfo now looks correct :)

(And for anyone reading this, the "hello world" / glxinfo of opencl is in fact the "clinfo" command, provided by the "clinfo" package.
kerryhall
 
Posts: 159
Joined: 2008-08-19 11:06

Re: How do I install OpenCL?

Postby stevepusser » 2020-03-06 03:02

It's unclear from your answer as to which was the correct package, though I know...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.6, Strawberry 0.6.11, Muse 3.1.0, Chromium with va-api, Audacity 2.4.1, Kdenlive 20.04
User avatar
stevepusser
 
Posts: 11692
Joined: 2009-10-06 05:53

Re: How do I install OpenCL?

Postby kerryhall » 2020-03-09 03:47

My apologies, nvidia-opencl-icd is the correct package. Thank you!
kerryhall
 
Posts: 159
Joined: 2008-08-19 11:06

Re: How do I install OpenCL?

Postby kerryhall » 2020-03-09 04:12

Additional info needed to get this to work. libOpenCL.so was still needed.

I used apt-file to look for libOpenCL.so, and I thought I found it in two packages:
nvidia-libopencl1
ocl-icd-libopencl1

I tried installing these and running the fahclient, one at a time, but no luck.

I then realized that these packages provide:
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
not:
/usr/lib/x86_64-linux-gnu/libOpenCL.so

So I ran the following command:
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so

to create a symlink from the filename fah was looking for, to the symlink provided by the nvidia-libopencl1 package. (Which is then finally symlinked to the actual lib)

This worked!
kerryhall
 
Posts: 159
Joined: 2008-08-19 11:06


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable