Page 1 of 2

GPU not detected

Posted: Sat Mar 14, 2020 8:31 pm
by None4U
I get the error "No available GPUs"

Output of 'clinfo':

Code: Select all

Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 10.2.109
  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 1050
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  440.44
  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                               6
  Max clock frequency                             1442MHz
  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                              3166699520 (2.949GiB)
  Error Correction support                        No
  Max memory allocation                           791674880 (755MiB)
  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                        294912 (288KiB)
  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, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              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
Output of 'nvidia-smi':

Code: Select all

Sat Mar 14 14:30:41 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.44       Driver Version: 440.44       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1050    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   43C    P8    N/A /  N/A |     32MiB /  3020MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1670      G   /usr/lib/xorg/Xorg                            14MiB |
|    0      3126      G   /usr/lib/xorg/Xorg                            14MiB |
+-----------------------------------------------------------------------------+
:( :( :(

Re: GPU not detected

Posted: Sun Mar 15, 2020 1:15 pm
by foldy
Can you post the first part of FAH log?

Re: GPU not detected

Posted: Sun Mar 15, 2020 1:20 pm
by Nathan_P
Have you installed the opencl libraries? These need to be installed separately to the driver.

Re: GPU not detected

Posted: Mon Mar 16, 2020 1:49 am
by None4U
Other OpenCL benchmarks and stuff work. CUDA works too (tensorflow).

Log:

Code: Select all

*********************** Log Started 2020-03-15T02:41:46Z ***********************
02:41:46:************************* Folding@home Client *************************
02:41:46:        Website: https://foldingathome.org/
02:41:46:      Copyright: (c) 2009-2018 foldingathome.org
02:41:46:         Author: Joseph Coffland <joseph@cauldrondevelopment.com>
02:41:46:           Args: --child --lifeline 7723 /etc/fahclient/config.xml --run-as
02:41:46:                 fahclient --pid-file=/var/run/fahclient.pid --daemon
02:41:46:         Config: /etc/fahclient/config.xml
02:41:46:******************************** Build ********************************
02:41:46:        Version: 7.5.1
02:41:46:           Date: May 11 2018
02:41:46:           Time: 19:59:04
02:41:46:     Repository: Git
02:41:46:       Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
02:41:46:         Branch: master
02:41:46:       Compiler: GNU 6.3.0 20170516
02:41:46:        Options: -std=gnu++98 -O3 -funroll-loops
02:41:46:       Platform: linux2 4.14.0-3-amd64
02:41:46:           Bits: 64
02:41:46:           Mode: Release
02:41:46:******************************* System ********************************
02:41:46:            CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
02:41:46:         CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
02:41:46:           CPUs: 12
02:41:46:         Memory: 7.68GiB
02:41:46:    Free Memory: 295.91MiB
02:41:46:        Threads: POSIX_THREADS
02:41:46:     OS Version: 5.3
02:41:46:    Has Battery: true
02:41:46:     On Battery: false
02:41:46:     UTC Offset: -6
02:41:46:            PID: 7725
02:41:46:            CWD: /var/lib/fahclient
02:41:46:             OS: Linux 5.3.0-7625-generic x86_64
02:41:46:        OS Arch: AMD64
02:41:46:           GPUs: 0
02:41:46:  CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:10.2
02:41:46:OpenCL Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:440.44
02:41:46:***********************************************************************
02:41:46:<config>
02:41:46:  <!-- Network -->
02:41:46:  <proxy v=':8080'/>
02:41:46:
02:41:46:  <!-- User Information -->
02:41:46:  <team v='237259'/>
02:41:46:  <user v='None4U'/>
02:41:46:
02:41:46:  <!-- Folding Slots -->
02:41:46:  <slot id='0' type='CPU'/>
02:41:46:  <slot id='1' type='GPU'/>
02:41:46:</config>
02:41:46:Switching to user fahclient
02:41:46:Trying to access database...
02:41:49:Successfully acquired database lock
02:41:49:Enabled folding slot 00: READY cpu:5
02:41:49:ERROR:Exception: No available GPUs
02:41:49:ERROR:Exception: Option 'gpu-index' has no default and is not set.
02:41:49:WU01:FS00:Starting
02:41:49:WU01:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 01 -suffix 01 -version 705 -lifeline 7725 -checkpoint 15 -np 5
02:41:49:WU01:FS00:Started FahCore on PID 7737
02:41:49:WU01:FS00:Core PID:7741
02:41:49:WU01:FS00:FahCore 0xa7 started
02:41:49:WU01:FS00:0xa7:*********************** Log Started 2020-03-15T02:41:49Z ***********************
02:41:49:WU01:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
02:41:49:WU01:FS00:0xa7:       Type: 0xa7
02:41:49:WU01:FS00:0xa7:       Core: Gromacs
02:41:49:WU01:FS00:0xa7:       Args: -dir 01 -suffix 01 -version 705 -lifeline 7737 -checkpoint 15 -np 5
02:41:49:WU01:FS00:0xa7:************************************ CBang *************************************
02:41:49:WU01:FS00:0xa7:       Date: Nov 5 2019
02:41:49:WU01:FS00:0xa7:       Time: 06:06:57
02:41:49:WU01:FS00:0xa7:   Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9
02:41:49:WU01:FS00:0xa7:     Branch: master
02:41:49:WU01:FS00:0xa7:   Compiler: GNU 8.3.0
02:41:49:WU01:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC
02:41:49:WU01:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
02:41:49:WU01:FS00:0xa7:       Bits: 64
02:41:49:WU01:FS00:0xa7:       Mode: Release
02:41:49:WU01:FS00:0xa7:************************************ System ************************************
02:41:49:WU01:FS00:0xa7:        CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
02:41:49:WU01:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
02:41:49:WU01:FS00:0xa7:       CPUs: 12
02:41:49:WU01:FS00:0xa7:     Memory: 7.68GiB
02:41:49:WU01:FS00:0xa7:Free Memory: 327.27MiB
02:41:49:WU01:FS00:0xa7:    Threads: POSIX_THREADS
02:41:49:WU01:FS00:0xa7: OS Version: 5.3
02:41:49:WU01:FS00:0xa7:Has Battery: true
02:41:49:WU01:FS00:0xa7: On Battery: false
02:41:49:WU01:FS00:0xa7: UTC Offset: -6
02:41:49:WU01:FS00:0xa7:        PID: 7741
02:41:49:WU01:FS00:0xa7:        CWD: /var/lib/fahclient/work
02:41:49:WU01:FS00:0xa7:******************************** Build - libFAH ********************************
02:41:49:WU01:FS00:0xa7:    Version: 0.0.18
02:41:49:WU01:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
02:41:49:WU01:FS00:0xa7:  Copyright: 2019 foldingathome.org
02:41:49:WU01:FS00:0xa7:   Homepage: https://foldingathome.org/
02:41:49:WU01:FS00:0xa7:       Date: Nov 5 2019
02:41:49:WU01:FS00:0xa7:       Time: 06:13:26
02:41:49:WU01:FS00:0xa7:   Revision: 490c9aa2957b725af319379424d5c5cb36efb656
02:41:49:WU01:FS00:0xa7:     Branch: master
02:41:49:WU01:FS00:0xa7:   Compiler: GNU 8.3.0
02:41:49:WU01:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie
02:41:49:WU01:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
02:41:49:WU01:FS00:0xa7:       Bits: 64
02:41:49:WU01:FS00:0xa7:       Mode: Release
02:41:49:WU01:FS00:0xa7:************************************ Build *************************************
02:41:49:WU01:FS00:0xa7:       SIMD: avx_256
02:41:49:WU01:FS00:0xa7:********************************************************************************
02:41:49:WU01:FS00:0xa7:Project: 14308 (Run 3, Clone 708, Gen 2)
02:41:49:WU01:FS00:0xa7:Unit: 0x000000029bf7a4d55e66c3be556a62bc
02:41:49:WU01:FS00:0xa7:Digital signatures verified
02:41:49:WU01:FS00:0xa7:Reducing thread count from 5 to 4 to avoid domain decomposition by a prime number > 3
02:41:49:WU01:FS00:0xa7:Calling: mdrun -s frame2.tpr -o frame2.trr -cpi state.cpt -cpt 15 -nt 4
02:41:49:WU01:FS00:0xa7:Steps: first=1000000 total=500000
02:41:50:WU01:FS00:0xa7:Completed 248442 out of 500000 steps (49%)
02:42:02:WU01:FS00:0xa7:Completed 250000 out of 500000 steps (50%)
02:42:46:WU01:FS00:0xa7:Completed 255000 out of 500000 steps (51%)
02:43:28:WU01:FS00:0xa7:Completed 260000 out of 500000 steps (52%)
02:44:11:WU01:FS00:0xa7:Completed 265000 out of 500000 steps (53%)
02:44:55:WU01:FS00:0xa7:Completed 270000 out of 500000 steps (54%)
02:45:42:WU01:FS00:0xa7:Completed 275000 out of 500000 steps (55%)
02:46:28:WU01:FS00:0xa7:Completed 280000 out of 500000 steps (56%)
02:47:09:WU01:FS00:0xa7:Completed 285000 out of 500000 steps (57%)
02:47:13:Lost lifeline PID 7723, exiting
02:47:15:FS00:Shutting core down
02:47:15:WU01:FS00:0xa7:Caught signal SIGINT(2) on PID 7741
02:47:15:WU01:FS00:0xa7:Exiting, please wait. . .
02:47:15:WU01:FS00:0xa7:Folding@home Core Shutdown: INTERRUPTED
02:47:15:Clean exit

Re: GPU not detected

Posted: Mon Mar 16, 2020 1:54 am
by bruce
What does "./FAHClient --lspci |grep vga" say?

Re: GPU not detected

Posted: Mon Mar 16, 2020 2:00 am
by bruce
Have you run something like:?
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev

Re: GPU not detected

Posted: Mon Mar 16, 2020 2:02 am
by None4U
I have both libs and the command has no results

Re: GPU not detected

Posted: Mon Mar 16, 2020 2:10 am
by bruce
FAHConrol doesn't work or lspi doesn't work or grep doesn't find anything? (Run it without the |grep...)

Re: GPU not detected

Posted: Mon Mar 16, 2020 2:52 am
by rixon
I had a weird problem earlier today... it detected one type of gpu, but not the other. I had already created the slots, and the slots listed the GPUs as unsupported. All were showing up fine in nvidia-smi and clinfo. Only the one slot with the GPU that wasn't unsupported ran GPU jobs correctly.

The solution was to install the GPU.txt file (search the forum on URL and where to put it.) I suspect the client had a partial download or something on startup (although several client restarts didn't do the trick.) After that, all GPUs were detected.

Re: GPU not detected

Posted: Mon Mar 16, 2020 3:42 am
by None4U
I have an empty GPUs.txt

Re: GPU not detected

Posted: Mon Mar 16, 2020 4:01 am
by None4U
I deleted my GPUs.txt and I restarted FAH and it downloaded a new one. It works now! thx

Re: GPU not detected

Posted: Tue Mar 17, 2020 9:55 pm
by Mace68
I didn't even have a GPUs.txt file generated until i set gpu to true in the expert tab. after i did that and restarted the client, it downloaded the GPUs.txt and I was able to successfully add a gpu slot, and it grabbed a WU and started chewing on it right away.

[edit]
I did also have to install the ocl-icd-opencl-dev package, so it could find libOpenCL.so though.

Re: GPU not detected

Posted: Thu Mar 19, 2020 9:31 pm
by ableeker
I'm running Ubuntu 19.0 with an AMD RX Vega 64, and I have ROCm 2.10 OpenCL installed. That was working, I made sure of that before I started folding. FAHClient installed without problems, but it just wasn't detecting the GPU. I added the GPU manually, and FAH did detect it, but it couldn't find OpenCL. But then I read in this forum I had to add user fahclient to the group video. That sounded familiar, I had to add the user just to get OpenCL working, so I tried it like so: sudo adduser fahclient video. That did the trick, FAHClient is crunching the GPU WU! (If they're available, that is...)

Re: GPU not detected

Posted: Thu Mar 19, 2020 10:02 pm
by ableeker
Huh, I tell a lie... Earlier it was finally working, but i just checked again, and it's back to 'Not detected: clGetDeviceIDs() returned -1'. And, yes, fahclient is a member of the video group...

Re: GPU not detected

Posted: Thu Mar 19, 2020 10:21 pm
by ableeker
Or maybe it's just FAHControl, I had quite a bit of trouble getting that installed... When I start FAHClient I get: 'OpenCL Device 0: Platform:0 Device:0 Bus:3 Slot:0 Compute:2.0 Driver:3019.0'. I'm not getting any WU's, but that's to be expected at the moment.