Page 1 of 2

[Solved] Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 1:15 pm
by AprilGrimoire
Hi. I'm trying to fold on Gentoo Linux. I installed foldingathome from sci-biology/foldingathome.

CPU folding worked fine, but GPU doesn't work.

I think I have the nvidia driver and opencl installed, but FAHClient complains about "Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually".

Here's the related log (with download and cpu progress stripped):

Code: Select all

*********************** Log Started 2020-08-08T12:51:59Z ***********************
12:51:59:Trying to access database...
12:51:59:Successfully acquired database lock
12:51:59:Read GPUs.txt
12:51:59:Enabled folding slot 00: READY cpu:10
12:51:59:Enabled folding slot 01: READY gpu:0:GP107 [GeForce GTX 1050 LP] 1862
12:51:59:****************************** FAHClient ******************************
12:51:59:      Version: 7.6.13
12:51:59:       Author: Joseph Coffland <joseph@cauldrondevelopment.com>
12:51:59:    Copyright: 2020 foldingathome.org
12:51:59:     Homepage: https://foldingathome.org/
12:51:59:         Date: Apr 28 2020
12:51:59:         Time: 04:20:27
12:51:59:     Revision: 5a652817f46116b6e135503af97f18e094414e3b
12:51:59:       Branch: master
12:51:59:     Compiler: GNU 4.9.4
12:51:59:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
12:51:59:     Platform: linux2 4.19.0-5-amd64
12:51:59:         Bits: 64
12:51:59:         Mode: Release
12:51:59:         Args: --log=/tmp/folding.log
12:51:59:       Config: /opt/foldingathome/config.xml
12:51:59:******************************** CBang ********************************
12:51:59:         Date: Apr 25 2020
12:51:59:         Time: 00:07:55
12:51:59:     Revision: ea081a3b3b0f4a37c4d0440b4f1bc184197c7797
12:51:59:       Branch: master
12:51:59:     Compiler: GNU 4.9.4
12:51:59:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
12:51:59:               -fPIC
12:51:59:     Platform: linux2 4.19.0-5-amd64
12:51:59:         Bits: 64
12:51:59:         Mode: Release
12:51:59:******************************* System ********************************
12:51:59:          CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
12:51:59:       CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
12:51:59:         CPUs: 12
12:51:59:       Memory: 15.57GiB
12:51:59:  Free Memory: 5.15GiB
12:51:59:      Threads: POSIX_THREADS
12:51:59:   OS Version: 5.7
12:51:59:  Has Battery: false
12:51:59:   On Battery: false
12:51:59:   UTC Offset: 8
12:51:59:          PID: 32346
12:51:59:          CWD: /opt/foldingathome
12:51:59:           OS: Linux 5.7.1-gentoo-x86_64 x86_64
12:51:59:      OS Arch: AMD64
12:51:59:         GPUs: 1
12:51:59:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GP107 [GeForce GTX 1050 LP] 1862
12:51:59:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:11.0
12:51:59:       OpenCL: Not detected: clGetDeviceIDs() returned -1
12:51:59:******************************* libFAH ********************************
12:51:59:         Date: Apr 15 2020
12:51:59:         Time: 21:43:27
12:51:59:     Revision: 216968bc7025029c841ed6e36e81a03a316890d3
12:51:59:       Branch: master
12:51:59:     Compiler: GNU 4.9.4
12:51:59:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
12:51:59:     Platform: linux2 4.19.0-5-amd64
12:51:59:         Bits: 64
12:51:59:         Mode: Release
12:51:59:***********************************************************************
12:51:59:<config>
12:51:59:  <!-- User Information -->
12:51:59:  <passkey v='*****'/>
12:51:59:  <team v='224497'/>
12:51:59:  <user v='AprilGrimoire'/>
12:51:59:
12:51:59:  <!-- Folding Slots -->
12:51:59:  <slot id='0' type='CPU'/>
12:51:59:  <slot id='1' type='GPU'/>
12:51:59:</config>
12:51:59:WU00:FS00:Connecting to assign1.foldingathome.org:80
12:52:00:WU01:FS01:Connecting to assign1.foldingathome.org:80
12:52:00:WU00:FS00:Assigned to work server 150.136.14.110
12:52:00:WU00:FS00:Requesting new work unit for slot 00: READY cpu:10 from 150.136.14.110
12:52:00:WU00:FS00:Connecting to 150.136.14.110:8080
12:52:00:WU01:FS01:Assigned to work server 18.188.125.154
12:52:00:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP107 [GeForce GTX 1050 LP] 1862 from 18.188.125.154
12:52:00:WU01:FS01:Connecting to 18.188.125.154:8080
12:52:03:18:127.0.0.1:New Web session
12:59:43:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:16426 run:606 clone:4 gen:124 core:0xa7 unit:0x0000008d96880e6e5e961eb9b29971af
12:59:43:WU00:FS00:Connecting to cores.foldingathome.org:80
13:02:18:WU01:FS01:Received Unit: id:01 state:DOWNLOAD error:NO_ERROR project:13420 run:6933 clone:40 gen:2 core:0x22 unit:0x0000000212bc7d9a5f2249973ba5731b
13:02:18:WU01:FS01:Connecting to cores.foldingathome.org:80
13:02:58:54:127.0.0.1:New Web session
13:07:58:WU01:FS01:Valid core signature
13:07:58:WU01:FS01:Starting
[91m13:07:58:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:07:58:WU01:FS01:Starting
[91m13:07:58:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:08:59:WU01:FS01:Starting
[91m13:08:59:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:10:36:WU01:FS01:Starting
[91m13:10:36:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:12:15:WU00:FS00:Valid core signature
13:12:15:WU00:FS00:Starting
13:12:15:WU00:FS00:Core PID:21446
13:12:16:WU00:FS00:0xa7:*********************** Log Started 2020-08-08T13:12:15Z ***********************
13:12:16:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
13:12:16:WU00:FS00:0xa7:       Type: 0xa7
13:12:16:WU00:FS00:0xa7:       Core: Gromacs
13:12:16:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 706 -lifeline 21442 -checkpoint 15 -np
13:12:16:WU00:FS00:0xa7:             10
13:12:16:WU00:FS00:0xa7:************************************ CBang *************************************
13:12:16:WU00:FS00:0xa7:       Date: Nov 27 2019
13:12:16:WU00:FS00:0xa7:       Time: 11:26:54
13:12:16:WU00:FS00:0xa7:   Revision: d25803215b59272441049dfa05a0a9bf7a6e3c48
13:12:16:WU00:FS00:0xa7:     Branch: master
13:12:16:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
13:12:16:WU00:FS00:0xa7:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
13:12:16:WU00:FS00:0xa7:             -fno-pie -fPIC
13:12:16:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
13:12:16:WU00:FS00:0xa7:       Bits: 64
13:12:16:WU00:FS00:0xa7:       Mode: Release
13:12:16:WU00:FS00:0xa7:************************************ System ************************************
13:12:16:WU00:FS00:0xa7:        CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
13:12:16:WU00:FS00:0xa7:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
13:12:16:WU00:FS00:0xa7:       CPUs: 12
13:12:16:WU00:FS00:0xa7:     Memory: 15.57GiB
13:12:16:WU00:FS00:0xa7:Free Memory: 4.50GiB
13:12:16:WU00:FS00:0xa7:    Threads: POSIX_THREADS
13:12:16:WU00:FS00:0xa7: OS Version: 5.7
13:12:16:WU00:FS00:0xa7:Has Battery: false
13:12:16:WU00:FS00:0xa7: On Battery: false
13:12:16:WU00:FS00:0xa7: UTC Offset: 8
13:12:16:WU00:FS00:0xa7:        PID: 21446
13:12:16:WU00:FS00:0xa7:        CWD: /opt/foldingathome/work
13:12:16:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
13:12:16:WU00:FS00:0xa7:    Version: 0.0.19
13:12:16:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
13:12:16:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
13:12:16:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
13:12:16:WU00:FS00:0xa7:       Date: Nov 26 2019
13:12:16:WU00:FS00:0xa7:       Time: 00:41:42
13:12:16:WU00:FS00:0xa7:   Revision: d5b5c747532224f986b7cd02c968ed9a20c16d6e
13:12:16:WU00:FS00:0xa7:     Branch: master
13:12:16:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
13:12:16:WU00:FS00:0xa7:    Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
13:12:16:WU00:FS00:0xa7:             -fno-pie
13:12:16:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
13:12:16:WU00:FS00:0xa7:       Bits: 64
13:12:16:WU00:FS00:0xa7:       Mode: Release
13:12:16:WU00:FS00:0xa7:************************************ Build *************************************
13:12:16:WU00:FS00:0xa7:       SIMD: avx_256
13:12:16:WU00:FS00:0xa7:********************************************************************************
13:12:16:WU00:FS00:0xa7:Project: 16426 (Run 606, Clone 4, Gen 124)
13:12:16:WU00:FS00:0xa7:Unit: 0x0000008d96880e6e5e961eb9b29971af
13:12:16:WU00:FS00:0xa7:Reading tar file core.xml
13:12:16:WU00:FS00:0xa7:Reading tar file frame124.tpr
13:12:16:WU00:FS00:0xa7:Digital signatures verified
13:12:16:WU00:FS00:0xa7:Calling: mdrun -s frame124.tpr -o frame124.trr -x frame124.xtc -cpt 15 -nt 10
13:12:16:WU00:FS00:0xa7:Steps: first=31000000 total=250000
13:13:13:WU01:FS01:Starting
[91m13:13:13:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:17:28:WU01:FS01:Starting
[91m13:17:28:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:17:28:WU01:FS01:Sending unit results: id:01 state:SEND error:FAILED project:13420 run:6933 clone:40 gen:2 core:0x22 unit:0x0000000212bc7d9a5f2249973ba5731b
13:17:28:WU01:FS01:Connecting to 18.188.125.154:8080
13:17:28:WU02:FS01:Connecting to assign1.foldingathome.org:80
13:17:29:WU02:FS01:Assigned to work server 18.188.125.154
13:17:29:WU02:FS01:Requesting new work unit for slot 01: READY gpu:0:GP107 [GeForce GTX 1050 LP] 1862 from 18.188.125.154
13:17:29:WU02:FS01:Connecting to 18.188.125.154:8080
13:17:29:WU01:FS01:Server responded WORK_ACK (400)
13:17:29:WU01:FS01:Cleaning up
13:30:51:WU02:FS01:Received Unit: id:02 state:DOWNLOAD error:NO_ERROR project:13420 run:8378 clone:2 gen:2 core:0x22 unit:0x0000000212bc7d9a5f2da534e49b78be
13:30:51:WU02:FS01:Starting
[91m13:30:51:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:30:51:WU02:FS01:Starting
[91m13:30:51:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:31:52:WU02:FS01:Starting
[91m13:31:52:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:33:29:WU02:FS01:Starting
[91m13:33:29:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:36:06:WU02:FS01:Starting
[91m13:36:06:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:40:20:WU02:FS01:Starting
[91m13:40:20:ERROR:WU02:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:40:21:WU02:FS01:Sending unit results: id:02 state:SEND error:FAILED project:13420 run:8378 clone:2 gen:2 core:0x22 unit:0x0000000212bc7d9a5f2da534e49b78be
13:40:21:WU02:FS01:Connecting to 18.188.125.154:8080
13:40:21:WU01:FS01:Connecting to assign1.foldingathome.org:80
13:40:23:WU01:FS01:Assigned to work server 18.188.125.154
13:40:23:WU01:FS01:Requesting new work unit for slot 01: READY gpu:0:GP107 [GeForce GTX 1050 LP] 1862 from 18.188.125.154
13:40:23:WU01:FS01:Connecting to 18.188.125.154:8080
13:40:30:WU02:FS01:Server responded WORK_ACK (400)
13:40:30:WU02:FS01:Cleaning up
13:51:58:WU01:FS01:Received Unit: id:01 state:DOWNLOAD error:NO_ERROR project:13420 run:6848 clone:26 gen:2 core:0x22 unit:0x0000000212bc7d9a5f22499ab3b4411d
13:51:58:WU01:FS01:Starting
[91m13:51:58:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:51:59:WU01:FS01:Starting
[91m13:51:59:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:52:59:WU01:FS01:Starting
[91m13:52:59:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:54:36:WU01:FS01:Starting
[91m13:54:36:ERROR:WU01:FS01:Failed to start core: OpenCL device matching slot 1 not found, make sure the OpenCL driver is installed or try setting 'opencl-index' manually[0m
13:54:58:FS00:Paused
13:54:58:FS01:Paused
13:54:58:FS00:Shutting core down
13:54:58:WU00:FS00:0xa7:Caught signal SIGINT(2) on PID 21446
13:54:58:WU00:FS00:0xa7:Exiting, please wait. . .
13:54:59:WU00:FS00:0xa7:Folding@home Core Shutdown: INTERRUPTED
13:55:01:Saving configuration to config.xml
13:55:01:<config>
13:55:01:  <!-- User Information -->
13:55:01:  <passkey v='*****'/>
13:55:01:  <team v='224497'/>
13:55:01:  <user v='AprilGrimoire'/>
13:55:01:
13:55:01:  <!-- Folding Slots -->
13:55:01:  <slot id='0' type='CPU'>
13:55:01:    <paused v='true'/>
13:55:01:  </slot>
13:55:01:  <slot id='1' type='GPU'>
13:55:01:    <paused v='true'/>
13:55:01:  </slot>
13:55:01:</config>

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 2:12 pm
by gunnarre
Gentoo is not an officially supported Linux distribution, but you might find some workarounds here: viewtopic.php?f=89&t=33333&p=318172

First add the fahclient user to the "video" group.

Please post the first 100 or so lines of your log that explains what FAHClient sees about your System Info and Configuration. You can remove the Download and Progress lines.
viewtopic.php?p=327413&f=24#p327413

Have you installed the proprietary drivers from Nvidia? You need those - the open source Nvidia drivers can't be used for folding. (Linux Mint users get an installer for the proprietary drivers, but most other users have to use Nvidia's webside to download a package or installer for it.)

Are you using a laptop with a GTX 1050 in it? You might have to disable the integrated graphics.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 2:30 pm
by AprilGrimoire
gunnarre wrote:Gentoo is not an officially supported Linux distribution, but you might find some workarounds here: viewtopic.php?f=89&t=33333&p=318172

First add the fahclient user to the "video" group.

Please post the first 100 or so lines of your log that explains what FAHClient sees about your System Info and Configuration. You can remove the Download and Progress lines.
viewtopic.php?p=327413&f=24#p327413

Have you installed the proprietary drivers from Nvidia? You need those - the open source Nvidia drivers can't be used for folding. (Linux Mint users get an installer for the proprietary drivers, but most other users have to use Nvidia's webside to download a package or installer for it.)

Are you using a laptop with a GTX 1050 in it? You might have to disable the integrated graphics.

Code: Select all

ag@AprilGrimoire  /opt/foldingathome   groups foldingathome                              22:24:24 
video

ag@AprilGrimoire  /opt/foldingathome   eix nvidia-drivers                                22:27:11 
[I] x11-drivers/nvidia-drivers
     Available versions:  340.108(0/340)^mtd 390.132-r1(0/390)^mtd (~)390.132-r2(0/390)^mtd 390.138(0/390)^mtd 430.64-r5(0/430)^mtd 435.21-r5(0/435)^mtd 440.100-r1(0/440)^mtd 450.57(0/450)^mtd {+X compat (+)driver gtk3 +kms +libglvnd multilib static-libs +tools uvm wayland ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="FreeBSD linux"}
     Installed versions:  450.57(0/450)^mtd(04:48:46 PM 08/08/2020)(X driver gtk3 kms libglvnd multilib tools uvm -compat -static-libs -wayland ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="linux -FreeBSD")
     Homepage:            https://www.nvidia.com/Download/Find.aspx
     Description:         NVIDIA Accelerated Graphics Driver
I think I ran into a different problem other than this one. This bug has been fixed by Gentoo, and now foldingathome user is in video group by default.

The log has been updated.

I think I'm using the proprietary drivers installed from Gentoo's package manager.

I'm using a desktop computer.

Thanks for helping :D .

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 2:44 pm
by gunnarre
What is the output of the "clinfo" command run as root? If it doesn't show any cards, you might need to add some OpenCL development files. If clinfo lists something as root, but not as the fahclient user, it's likely a permissions issue still. Does your system have a "render" group?

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:01 pm
by AprilGrimoire
gunnarre wrote:What is the output of the "clinfo" command run as root? If it doesn't show any cards, you might need to add some OpenCL development files. If clinfo lists something as root, but not as the fahclient user, it's likely a permissions issue still. Does your system have a "render" group?

Code: Select all

 ag@AprilGrimoire  /home/ag   sudo clinfo                                                 22:59:57 
Number of platforms                               2
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.0.210
  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                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 20.1.4
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  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                                  450.57
  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                               5
  Max clock frequency                             1455MHz
  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                              2092105728 (1.948GiB)
  Error Correction support                        No
  Max memory allocation                           523026432 (498.8MiB)
  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                        245760 (240KiB)
  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

  Platform Name                                   Clover
Number of devices                                 0

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

 ag@AprilGrimoire  /home/ag   sudo -u foldingathome clinfo                                23:00:07 
Number of platforms                               2
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.0.210
  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                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 20.1.4
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  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                                  450.57
  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                               5
  Max clock frequency                             1455MHz
  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
[1]    25158 segmentation fault  sudo -u foldingathome clinfo

Both root and foldingathome user can get lots of output from clinfo, but I got a segmentation fault with the foldingathome user.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:05 pm
by gunnarre
The foldingathome user doesn't have a shell per default. Temporarily edit /etc/passwd and give the foldingathome user /bin/bash as a shell. Then you can test again. Remember to set the shell to false afterwards.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:07 pm
by AprilGrimoire
gunnarre wrote:The foldingathome user doesn't have a shell per default. Temporarily edit /etc/passwd and give the foldingathome user /bin/bash as a shell. Then you can test again. Remember to set the shell to false afterwards.
I set it to /bin/bash, but the output didn't change.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:09 pm
by gunnarre
What is the output of

Code: Select all

eselect opencl list

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:15 pm
by AprilGrimoire
gunnarre wrote:What is the output of

Code: Select all

eselect opencl list
I don't have it, as it is deprecated.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:24 pm
by gunnarre
Looks like, from the thread I listed above, that you still have to run FAHClient as root(?!) on Gentoo. That might be the same error that gives a segfault when you run clinfo as the fahclient user.
Manfred.Knick wrote:Gentoo bugs #714160 (1) and #712744 (2):
(...)
- In order to exploit CUDA, enable USE=+uvm for x11-drivers/nvidia-drivers-440.64:0/440
- No need to edit /opt/foldingathome/config.xml manually:
- Team 11298 ("Gentoo Linux Users Everywhere") already set as default
- (!) Do not use "/etc/init.d/foldingathome start" and do not "rc-update add foldingathome default" right now
- (!) nor it's systemd correspondants
- (!) instead (as root, unfortunately) start /opt/foldingathome/FAHClient
I would normally not recommend running FAHClient as root, especially since it auto-downloads software (the folding cores), but if you don't care about your system, you could try to stop FAHClient, and just cd into foldingathome's home directory and run FAHClient with sudo and see if it picks up OpenCL.

Edit: This appears to me to be something wrong with Gentoo's setup. Maybe you're better served with the official Linux download and just extracting the executables from that?

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 3:31 pm
by AprilGrimoire
gunnarre wrote:Looks like, from the thread I listed above, that you still have to run FAHClient as root(?!) on Gentoo. That might be the same error that gives a segfault when you run clinfo as the fahclient user.
Manfred.Knick wrote:Gentoo bugs #714160 (1) and #712744 (2):
(...)
- In order to exploit CUDA, enable USE=+uvm for x11-drivers/nvidia-drivers-440.64:0/440
- No need to edit /opt/foldingathome/config.xml manually:
- Team 11298 ("Gentoo Linux Users Everywhere") already set as default
- (!) Do not use "/etc/init.d/foldingathome start" and do not "rc-update add foldingathome default" right now
- (!) nor it's systemd correspondants
- (!) instead (as root, unfortunately) start /opt/foldingathome/FAHClient
I would normally not recommend running FAHClient as root, especially since it auto-downloads software (the folding cores), but if you don't care about your system, you could try to stop FAHClient, and just cd into foldingathome's home directory and run FAHClient with sudo and see if it picks up OpenCL.

Edit: This appears to me to be something wrong with Gentoo's setup. Maybe you're better served with the official Linux download and just extracting the executables from that?
Oops, I found that eselect-opencl is not deprecated, but conflicting with opencl-icd-loader. I switched to eselect-opencl, but the problem persists.

Code: Select all

 ag@AprilGrimoire  /home/ag   eselect opencl list                                         23:29:47 
Available OpenCL implementations:
  [1]   nvidia *


Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sat Aug 08, 2020 5:15 pm
by gunnarre
Did running as root help? If not, I wonder if you'll need to install a full CUDA development environment to get the correct OpenCL files.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Sun Aug 09, 2020 9:30 am
by AprilGrimoire
gunnarre wrote:Did running as root help? If not, I wonder if you'll need to install a full CUDA development environment to get the correct OpenCL files.
Running as root didn't help.

I've installed nvidia-cuda-sdk with opencl use flag enabled, but it didn't help either.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Mon Aug 10, 2020 3:33 pm
by toTOW
Remove the MESA OpenCL platform.

Re: Nvidia GTX 1050 is not working on Gentoo Linux

Posted: Tue Aug 11, 2020 3:26 am
by AprilGrimoire
toTOW wrote:Remove the MESA OpenCL platform.
Crossover depends on it. Can I run foldingathome with it kept?