Page MenuHomeSolus

opencl support need sudo the first time to be enabled (NVIDIA)
Closed, ResolvedPublic

Description

clinfo doesn't provide any informations about my NVIDIA Geforce 750Ti card, just only the Intel GPU.

I saw archlinux provides a package called nvidia-opencl with a file not present in Solus: etc/OpenCL/vendors/nvidia.icd

I need it to run darktable with opencl support. Maybe you could add this file to NVIDIA package ?

EDIT:

sudo clinfo provides info about the Nvidia card. And sudo darktable-cltest enable opencl support for darktable.

Then, I don't have to use sudo again to get the opencl support. I think it's not the correct way to have to run sudo the first time and it's a bug.

Event Timeline

Try looking here (i.e. it already has the opencl loader):

/usr/share/OpenCL/vendors/nvidia.icd

Try looking here (i.e. it already has the opencl loader):

/usr/share/OpenCL/vendors/nvidia.icd

Oh, right, it's here. Well I don't understand why darktable disable the opencl support :/

Strange, clinfo found my nvidia but only with sudo prefix.

And of course, sudo darktable-cltest is successful. Maybe a rights problem ?

Devil505 renamed this task from NVIDIA ICD file missing to opencl support need sudo the first time to be enabled.Sep 25 2017, 8:11 AM
Devil505 reopened this task as Open.
Devil505 updated the task description. (Show Details)

@sunnyflunk I edit the report, after using sudo clinfo and darktable displays opencl support correctly. It's weird IMHO.

Devil505 renamed this task from opencl support need sudo the first time to be enabled to opencl support need sudo the first time to be enabled (NVIDIA).Sep 25 2017, 8:27 AM

I just gave a try to clinfo and it worked without sudo (but I might have execute sudo clinfo a long time ago).
I suspec the problem to be at ocl-icd level since many applications are impacted

ikey claimed this task.
ikey added a subscriber: ikey.