Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

It seems that a lot of GPU problems revolve around specific versions of drivers. Though NVidia has their own support structure, you can often learn from information reported by others who fold.

Moderators: Site Moderators, FAHC Science Team

Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

Postby 8bitMicroFan » Fri Mar 13, 2020 7:25 pm

Hi,
I started folding last week to help fight the Corona virus. Unfortunately, after updating to the new Nvidia driver (440.64), FAHControl shows that Cuda and OpenCL have not been detected, so the assigned GPU job won't start. I'm running Arch Linux (latest updates installed as of writing this).

Log:
Code: Select all
*********************** Log Started 2020-03-13T17:25:39Z ***********************
17:25:39:************************* Folding@home Client *************************
17:25:39:    Website: https://foldingathome.org/
17:25:39:  Copyright: (c) 2009-2018 foldingathome.org
17:25:39:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
17:25:39:       Args:
17:25:39:     Config: /var/lib/private/fah/config.xml
17:25:39:******************************** Build ********************************
17:25:39:    Version: 7.5.1
17:25:39:       Date: May 11 2018
17:25:39:       Time: 19:59:04
17:25:39: Repository: Git
17:25:39:   Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
17:25:39:     Branch: master
17:25:39:   Compiler: GNU 6.3.0 20170516
17:25:39:    Options: -std=gnu++98 -O3 -funroll-loops
17:25:39:   Platform: linux2 4.14.0-3-amd64
17:25:39:       Bits: 64
17:25:39:       Mode: Release
17:25:39:******************************* System ********************************
17:25:39:        CPU: AMD A10-7860K Radeon R7, 12 Compute Cores 4C+8G
17:25:39:     CPU ID: AuthenticAMD Family 21 Model 56 Stepping 1
17:25:39:       CPUs: 4
17:25:39:     Memory: 23.50GiB
17:25:39:Free Memory: 20.60GiB
17:25:39:    Threads: POSIX_THREADS
17:25:39: OS Version: 5.5
17:25:39:Has Battery: false
17:25:39: On Battery: false
17:25:39: UTC Offset: 1
17:25:39:        PID: 1991
17:25:39:        CWD: /var/lib/private/fah
17:25:39:         OS: Linux 5.5.8-arch1-1 x86_64
17:25:39:    OS Arch: AMD64
17:25:39:       GPUs: 1
17:25:39:      GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP106 [GeForce GTX 1060 6GB] 4372
17:25:39:       CUDA: Not detected: cuInit() returned 999
17:25:39:     OpenCL: Not detected: clGetPlatformIDs() returned -1001
17:25:39:***********************************************************************
17:25:39:<config>
17:25:39:  <!-- Network -->
17:25:39:  <proxy v=':8080'/>
17:25:39:
17:25:39:  <!-- Slot Control -->
17:25:39:  <power v='full'/>
17:25:39:
17:25:39:  <!-- User Information -->
17:25:39:  <passkey v='********************************'/>
17:25:39:  <team v='223518'/>
17:25:39:  <user v='8bitMicroFan'/>
17:25:39:
17:25:39:  <!-- Folding Slots -->
17:25:39:  <slot id='1' type='GPU'/>
17:25:39:</config>
17:25:39:Trying to access database...
17:25:39:Successfully acquired database lock
17:25:39:Enabled folding slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372
17:25:39:ERROR:No compute devices matched GPU #0 NVIDIA:7 GP106 [GeForce GTX 1060 6GB] 4372.  You may need to update your graphics drivers.
17:25:40:WU00:FS01:Connecting to 65.254.110.245:8080
17:25:41:WU00:FS01:Assigned to work server 140.163.4.231
17:25:41:WU00:FS01:Requesting new work unit for slot 01: READY gpu:0:GP106 [GeForce GTX 1060 6GB] 4372 from 140.163.4.231
17:25:41:WU00:FS01:Connecting to 140.163.4.231:8080
17:25:42:WU00:FS01:Downloading 29.59MiB
17:25:48:WU00:FS01:Download 13.73%
17:25:54:WU00:FS01:Download 23.66%
17:26:00:WU00:FS01:Download 29.15%
17:26:06:WU00:FS01:Download 37.60%
17:26:12:WU00:FS01:Download 52.81%
17:26:18:WU00:FS01:Download 67.38%
17:26:24:WU00:FS01:Download 76.67%
17:26:30:WU00:FS01:Download 81.95%
17:26:36:WU00:FS01:Download 84.07%
17:26:42:WU00:FS01:Download 87.87%
17:26:48:WU00:FS01:Download 93.15%
17:26:54:WU00:FS01:Download 96.74%
17:26:57:WU00:FS01:Download complete
17:26:57:WU00:FS01:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:11749 run:0 clone:4628 gen:1 core:0x22 unit:0x000000018ca304e75e6a8016c8dbb4fb
17:26:57:WU00:FS01:Starting
17:26:57:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually
17:26:57:WU00:FS01:Starting
17:26:57:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually
17:27:57:WU00:FS01:Starting
17:27:57:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually


At this point I'm not sure why cuInit() and clGetPlatformIDs() return errors. All the required packages are installed. It worked before updating the driver.

Thanks in advance for the help!
8bitMicroFan
 
Posts: 2
Joined: Fri Mar 13, 2020 7:05 pm

Re: Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

Postby foldy » Fri Mar 13, 2020 9:59 pm

sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev
Arch Linux Installation: viewtopic.php?f=89&t=31205#p304145
foldy
 
Posts: 1936
Joined: Sat Dec 01, 2012 4:43 pm

Re: Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

Postby 8bitMicroFan » Fri Mar 13, 2020 11:51 pm

According to the Arch Linux Wiki I have to install these two packages. They should be the Arch equivalent of the Debian ones you mentioned.

Code: Select all
extra/ocl-icd 2.2.12-3 [installed] -> provides libOpenCL.so
    OpenCL ICD Bindings
extra/opencl-nvidia 440.64-2 [installed] -> matches version of the driver
    OpenCL implemention for NVIDIA


Here is the output from clinfo:
Code: Select all
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 10.2.141
  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_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce GTX 1060 6GB
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  440.64
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               10
  Max clock frequency                             1835MHz
  Compute Capability (NV)                         6.1
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              6373179392 (5.935GiB)
  Error Correction support                        No
  Max memory allocation                           1593294848 (1.484GiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        491520 (480KiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435456 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x32768 pixels
    Max 3D image size                             16384x16384x16384 pixels
    Max number of read image args                 256
    Max number of write image args                16
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties                               
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities                         
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device 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_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  Invalid device type for platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.12
  ICD loader Profile                              OpenCL 2.2
8bitMicroFan
 
Posts: 2
Joined: Fri Mar 13, 2020 7:05 pm

Re: Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

Postby lazyacevw » Tue Mar 17, 2020 11:58 pm

nvidia-smi is another nifty built-in util you can use to check out nvidia related info.

It is more than likely an issue with your nvidia drivers being out of whack after the upgrade process. I found out last week that stacking different nvidia drivers can kill it's functionality (FAH would work but I killed Steam!) You might be able to fix it by hopping into run level 3, removing all nvidia packages, install 440, and then reboot.

It should be something along these lines:

Hit CTRL+ALT+F1

Code: Select all
sudo telinit 3
sudo apt purge nvidia*
sudo apt update && sudo apt upgrade
bash ~/Desktop/NVIDIA-Linux-x86_64-440.46.run
sudo reboot


Be sure to check /var/lib/dkms/nvidia/440.46/build/make.log for any errors.
lazyacevw
 
Posts: 36
Joined: Tue Mar 17, 2020 9:12 pm

Re: Nvidia 440.64: GTX1060 Cuda and OpenCL not detected

Postby Pezlu » Thu Apr 16, 2020 11:15 pm

I had the same problem, on Manjaro. I guess you're using foldingathome-noroot; it was told me that cuda requires root, and I was suggested to install foldingathome (root client) instead. I've not found a way to allow foldingathome-noroot to detect cuda, but everything works with foldingathome (root).

Original thread: https://forum.manjaro.org/t/issue-with- ... oot/136362
Pezlu
 
Posts: 7
Joined: Thu Apr 16, 2020 3:03 pm


Return to Problems with NVidia drivers

Who is online

Users browsing this forum: No registered users and 1 guest

cron