1080 Nvidia GPU not available - Fedora 31

Moderators: Site Moderators, FAHC Science Team

Burger22
Posts: 1
Joined: Fri Mar 13, 2020 8:04 pm

Re: 1080 Nvidia GPU not available - Fedora 31

Post by Burger22 »

Running the above two lines, and then rebooting, got my Nvidia GeForce GTX 1660 Ti recognized by FAH. I had to then manually create a GPU slot. Thank you!
pad76
Posts: 2
Joined: Sat Mar 14, 2020 4:37 pm

Re: 1080 Nvidia GPU not available - Fedora 31

Post by pad76 »

I have the same exact issue with my 1070 GTX on Fedora 31. I have tried the nvidia drivers from both the RPMFusion and negativo17 repos. I installed just about every opencl package I could find by running "dnf search opencl". I hope someone can help me figure out how I can fix the issues so I can use my GPU for folding. Here is my latest log:

Code: Select all

*********************** Log Started 2020-03-14T16:31:51Z ***********************
16:31:51:************************* Folding@home Client *************************
16:31:51:      Website: https://foldingathome.org/
16:31:51:    Copyright: (c) 2009-2018 foldingathome.org
16:31:51:       Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:31:51:         Args: --child --lifeline 9822 /etc/fahclient/config.xml --run-as
16:31:51:               fahclient --pid-file=/var/run/fahclient.pid --daemon
16:31:51:       Config: /etc/fahclient/config.xml
16:31:51:******************************** Build ********************************
16:31:51:      Version: 7.5.1
16:31:51:         Date: May 12 2018
16:31:51:         Time: 22:51:07
16:31:51:   Repository: Git
16:31:51:     Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
16:31:51:       Branch: master
16:31:51:     Compiler: GNU 4.4.7 20120313 (Red Hat 4.4.7-18)
16:31:51:      Options: -std=gnu++98 -O3 -funroll-loops
16:31:51:     Platform: linux2 4.14.0-3-amd64
16:31:51:         Bits: 64
16:31:51:         Mode: Release
16:31:51:******************************* System ********************************
16:31:51:          CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
16:31:51:       CPU ID: GenuineIntel Family 6 Model 60 Stepping 3
16:31:51:         CPUs: 8
16:31:51:       Memory: 15.50GiB
16:31:51:  Free Memory: 11.43GiB
16:31:51:      Threads: POSIX_THREADS
16:31:51:   OS Version: 5.5
16:31:51:  Has Battery: false
16:31:51:   On Battery: false
16:31:51:   UTC Offset: -4
16:31:51:          PID: 9824
16:31:51:          CWD: /var/lib/fahclient
16:31:51:           OS: Linux 5.5.8-200.fc31.x86_64 x86_64
16:31:51:      OS Arch: AMD64
16:31:51:         GPUs: 1
16:31:51:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP104 [GeForce GTX 1070] 6463
16:31:51:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:10.2
16:31:51:       OpenCL: Not detected: clGetDeviceIDs() returned -1
16:31:51:***********************************************************************
16:31:51:<config>
16:31:51:  <!-- Slot Control -->
16:31:51:  <power v='full'/>
16:31:51:
16:31:51:  <!-- Folding Slots -->
16:31:51:  <slot id='1' type='GPU'/>
16:31:51:</config>
16:31:51:Switching to user fahclient
16:31:51:Trying to access database...
16:31:51:Successfully acquired database lock
16:31:51:Enabled folding slot 01: READY gpu:0:GP104 [GeForce GTX 1070] 6463
16:31:51:WU00:FS01:Starting
^[[91m16:31:51:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually^[[0m
16:31:51:WU00:FS01:Starting
^[[91m16:31:51:ERROR:WU00:FS01:Failed to start core: OpenCL device matching slot 1 not found, try setting 'opencl-index' manually^[[0m
16:32:18:Lost lifeline PID 9822, exiting
16:32:18:Lost lifeline PID 9822, exiting
16:32:19:Clean exit
And these are the packages I have installed via "dnf list --installed | grep -i 'opencl\|ocl'

Code: Select all

mesa-libOpenCL.x86_64                       19.2.8-1.fc31                          @updates
mesa-libOpenCL-devel.x86_64                 19.2.8-1.fc31                          @updates
ocl-icd.x86_64                              2.2.12-6.fc31                          @fedora
ocl-icd-devel.x86_64                        2.2.12-6.fc31                          @fedora
opencl-filesystem.noarch                    1.0-10.fc31                            @fedora
opencl-headers.noarch                       2.2-5.20190205git49f07d3.fc31          @fedora
opencl-utils.x86_64                         1-10.svn16.fc31                        @fedora
opencl-utils-devel.x86_64                   1-10.svn16.fc31                        @fedora
MarkyMark7
Posts: 9
Joined: Tue Dec 22, 2009 3:09 am

Re: 1080 Nvidia GPU not available - Fedora 31

Post by MarkyMark7 »

GEI wrote:Will move FAHClient to Docker using a Nvidia base image.

Have to say that while I like the idea of sharing unused resources for research, it needs to be seamless for the volunteer provider.
Thanks for working through the install issues; I'm impressed by both your skills and the others that helped resolve the issues. That points per day looks pretty close to what I am seeing on a similar Nvidia card.
-- Mark
https://folding.extremeoverclocking.com ... 381&t=1003
Or maybe https://folding.extremeoverclocking.com/sigs/sigimage.php/u=514381/t=1003/signimage.png
rixon
Posts: 10
Joined: Sun Mar 15, 2020 5:25 am
Hardware configuration: Linux / Xeon / Tesla / HPC
Location: Kansas City

Re: 1080 Nvidia GPU not available - Fedora 31

Post by rixon »

pad76 wrote:I have the same exact issue with my 1070 GTX on Fedora 31. I have tried the nvidia drivers from both the RPMFusion and negativo17 repos. I installed just about every opencl package I could find by running "dnf search opencl". I hope someone can help me figure out how I can fix the issues so I can use my GPU for folding. Here is my latest log:
Does clinfo work (may need to install it.) If it doesn't, I would try different Nvidia drivers - perhaps from Nvidia themselves and not in-distro. For mine, I install Cuda and use the drivers they provide.
MattiL
Posts: 1
Joined: Sat Mar 28, 2020 10:31 am

Re: 1080 Nvidia GPU not available - Fedora 31

Post by MattiL »

I have 2080 RTX Super and finally got OpenCL to work with FAH:
installed packages
dnf install opencl-utils opencl-filesystem opencl-headers opencl-utils-devel
dnf install ocl-icd ocl-icd-devel

Crucial part to get Fedora 31 NVidia OpenCL to work is
dnf install xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-devel
and removal of
dnf erase mesa-libOpenCL pocl
if you happened to install those. (Edited pocl here as well, thx to aclater.) With current FAHClient there can be only one icd at the time in /etc/OpenCL/vendors/ folder.

Other installed NVidia packages are
org-x11-drv-nvidia-libs-440 kmod-nvidia akmod-nvidia-440 nvidia-persistenced-440
Last edited by MattiL on Sat Apr 11, 2020 6:00 am, edited 1 time in total.
aclater
Posts: 2
Joined: Fri Apr 03, 2020 6:48 pm

Re: 1080 Nvidia GPU not available - Fedora 31

Post by aclater »

So I did a bit of digging around with this today, because we have had several folks who have been unable to get OpenCL working on Fedora. What I've found is that FAHClient seems to experience some issues if there is more than one OpenCL platform on the host. Through some trial and error, it looks like FAHClient attaches to the first OpenCL platform on the host, regardless of whether it matches the name of the GPU Vendor. I have seen mesa-libOpenCL as well as POCL create this issue. On Fedora 31 - you want to make sure the following packages are present (at least these don't seem to interfere):

ocl-icd-2.2.12-6.fc31.x86_64
ocl-icd-devel-2.2.12-6.fc31.x86_64
opencl-headers-2.2-5.20190205git49f07d3.fc31.noarch
opencl-utils-1-10.svn16.fc31.x86_64
opencl-filesystem-1.0-10.fc31.noarch
clinfo-2.2.18.04.06-3.fc31.x86_64

You want to make sure the following are not installed:
mesa-libOpenCL-19.2.8-1.fc31.x86_64
pocl.x86_64

clinfo should reveal only a single platform installed:

Code: Select all

clinfo | head
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

The client should be updated to either allow selection of the appropriate OpenCL platform (via name or index) or should use the OpenCL platform which matches the name of the GPU.

Image

*** I use the RPMFusion nonfree Nvidia Driver ***
Post Reply