You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, mesa opencl implementation packages like rusticl or clover installs .icd file under "/usr/share/OpenCL/vendors".
When I run 'clinfo', it only detects nvidia platform. But, if I move .icd file of rusticl into "/etc/OpenCL/vendors", it detects both platform well.
My response:
Indeed /etc/OpenCL/vendors/ gets preferred. As workaround you can create symlinks from /etc/OpenCL/vendors/ to /usr/share/OpenCL/vendors or set OPENCL_VENDOR_PATH environment variable to /usr/share/OpenCL/vendors to see only the Mesa CL drivers.
I think the patch on ocl-icd is not correct, as it should allow to source icd files from both locations, not just one replacing the other.
Having said that, /usr/share/OpenCL/vendors is not standard at all. In some distributions we also allow the Khronos OpenCL ICD Loader (https://github.com/KhronosGroup/OpenCL-ICD-Loader) as a valid package for providing libOpenCL.so.1, and that does not support /usr/share/OpenCL/vendors as a valid location.
If this is what SUSE uses as the standard I think it's fine, but the patch needs to be udpated. If you want to be 100% compliant you should keep on using /etc/OpenCL/vendors or update the patch to allow both locations and submit a patch to the Khronos ICD Loader.
openSUSE Report -> https://bugzilla.suse.com/show_bug.cgi?id=1235084
nvidia-compute-G06 package installs 'nvidia.icd' below directory "/etc/OpenCL/vendors/"
However, mesa opencl implementation packages like rusticl or clover installs .icd file under "/usr/share/OpenCL/vendors".
When I run 'clinfo', it only detects nvidia platform. But, if I move .icd file of rusticl into "/etc/OpenCL/vendors", it detects both platform well.
My response:
Indeed /etc/OpenCL/vendors/ gets preferred. As workaround you can create symlinks from /etc/OpenCL/vendors/ to /usr/share/OpenCL/vendors or set OPENCL_VENDOR_PATH environment variable to /usr/share/OpenCL/vendors to see only the Mesa CL drivers.
@scaronni-nvidia Any opinion on that? Background: We patch ocl-icd,
Sat Aug 22 16:49:25 UTC 2020 - Stefan Dirsch [email protected]
(boo#1173005, comment#8)
The text was updated successfully, but these errors were encountered: