Bug#888952: nvidia-driver and opencl

Pascal Obry pascal at obry.net
Wed Jan 31 14:45:50 UTC 2018


Package: nvidia-driver
Version: 384.111-4

Since 384.111-3 (for sure, maybe even with older version) OpenCL is not
activated at boot. That is, after I log:

$ clinfo
Number of platforms                               0

What I found (by chance) is that running clinfo as root works:

$ sudo clinfo
Number of platforms                               1
 
Platform Name                                   NVIDIA CUDA
  Platform
Vendor                                 NVIDIA Corporation
  Platform
Version                                OpenCL 1.2 CUDA 9.0.282
 
Platform Profile                                FULL_PROFILE
  Platform
Extensions                             cl_khr_global_int32_base_atomics
cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics
cl_khr_local_int32_extended_atomics cl_khr_fp64
cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing
cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll
cl_nv_copy_opts cl_khr_gl_event cl_nv_create_buffer
  Platform
Extensions function suffix             NV
...

And *after that* a clinfo as a user works too:

$ clinfo
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
...

I don't understand why clinfo as root seems to "unblock" something. Any idea?

I have reproduced this 2 times, so I'm pretty sure about the above
report even if it seems strange.

Let me know if you want me to do some more testing.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B



More information about the pkg-nvidia-devel mailing list