Page 1 of 1

problem with quadro M2000M

Posted: Fri May 01, 2020 11:03 pm
by mtruchado
Hi, for whatever reason OpenCL is not working:

Code: Select all

22:27:49:******************************* System ********************************
22:27:49:          CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
22:27:49:       CPU ID: GenuineIntel Family 6 Model 94 Stepping 3
22:27:49:         CPUs: 8
22:27:49:       Memory: 31.30GiB
22:27:49:  Free Memory: 30.11GiB
22:27:49:      Threads: POSIX_THREADS
22:27:49:   OS Version: 4.15
22:27:49:  Has Battery: true
22:27:49:   On Battery: true
22:27:49:   UTC Offset: 2
22:27:49:          PID: 1817
22:27:49:          CWD: /var/lib/fahclient
22:27:49:           OS: Linux 4.15.0-99-generic x86_64
22:27:49:      OS Arch: AMD64
22:27:49:         GPUs: 1
22:27:49:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:4 GM107GLM [Quadro M2000M]
22:27:49:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:5.0 Driver:10.0
22:27:49:       OpenCL: Not detected: Failed to load dynamic symbol 'clGetPlatformIDs'
22:27:49:               from library 'libOpenCL.so':
22:27:49:               /usr/lib/x86_64-linux-gnu/libOpenCL.so: undefined symbol:
22:27:49:               clGetPlatformIDs
22:27:49:******************************* libFAH ********************************
the card is good configured, It is working properly, clinfo output is here:

Code: Select all

Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 10.0.292
  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

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     Quadro M2000M
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  410.104
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
here is the os info:

Code: Select all

cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
here is the icd and OpenCL configuration:

Code: Select all

# ll /etc/OpenCL/vendors/
total 12
drwxr-xr-x 2 root root 4096 abr 28 20:50 ./
drwxr-xr-x 3 root root 4096 nov 26  2018 ../
-rw-r--r-- 1 root root   22 jul 11  2018 nvidia.icd
# cat /etc/OpenCL/vendors/nvidia.icd 
libnvidia-opencl.so.1
# locate libnvidia-opencl.so.1
/usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
# readlink -f /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.410.104
any idea what could be the reason?

thanks

Re: problem with quadro M2000M

Posted: Sat May 02, 2020 12:36 am
by PantherX
Welcome to the F@H Forum mtruchado,

From what I have read, you need to have Nvidia proprietary drivers (not the open sourced ones) and you need to install OpenCL package for GPU folding to work

Re: problem with quadro M2000M

Posted: Sun May 03, 2020 8:24 pm
by mtruchado
It´s there, look:

Code: Select all

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     Quadro M2000M
  Device Vendor                                   NVIDIA Corporation
this is the driver version:

Code: Select all

 Driver Version                                  410.104
The laptop is a g3 zbook from HP which includes this gpu. It´s working flawlessly in windows by the way.

Oh by the way, the laptop does not even starting if nouveau module is being loaded, hence It´s blacklisted

Re: problem with quadro M2000M

Posted: Sun May 03, 2020 9:23 pm
by bikeaddict
The OpenCL error I was having on Fedora was from the ocl-icd-devel package missing (maybe different pkg name on Ubuntu). I previously had the libOpenCL.so from the mesa-libOpenCL package, which I uninstalled.

There are also files in /etc/OpenCL/vendors that list which versions of the library are installed. I had to have only one file there that lists libnvidia-opencl.so.1.