Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do I install OpenCL?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

How do I install OpenCL?

#1 Post by kerryhall »

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?)

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: How do I install OpenCL?

#2 Post by Bulkley »

My guess is

Code: Select all

# apt-get install boinc-client-opencl
I got this by doing a Debian package search here.

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: How do I install OpenCL?

#3 Post by kerryhall »

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.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How do I install OpenCL?

#4 Post by stevepusser »

It's really nvidia-opencl-icd--at least that's what I needed to get it working with the openCL enabled versions of mandelbulber2.
MX Linux packager and developer

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: How do I install OpenCL?

#5 Post by kerryhall »

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.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How do I install OpenCL?

#6 Post by stevepusser »

It's unclear from your answer as to which was the correct package, though I know...
MX Linux packager and developer

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: How do I install OpenCL?

#7 Post by kerryhall »

My apologies, nvidia-opencl-icd is the correct package. Thank you!

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: How do I install OpenCL?

#8 Post by kerryhall »

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!

User avatar
Francewhoa
Posts: 32
Joined: 2013-04-12 17:59
Location: Sept-Iles, Quebec, Canada
Has thanked: 6 times

Re: How do I install OpenCL?

#9 Post by Francewhoa »

For those interested in a much more recent version of nvidia-opencl-icd. With bug fixed and faster performance. It is available in the Debian Backport repository. For example, for Buster at https://packages.debian.org/buster-back ... opencl-icd

If you're not familiar with Backport package, there are more recent versions of packages. Related documentation at https://backports.debian.org
- - -
Loving back your Debian community result in multiple benefits for you. https://www.debian.org/intro/help

Post Reply