Page 1 of 1

Fahcontrol says Cuda not detected

Posted: Fri May 29, 2020 5:00 am
by Darth_Peter_dualxeon
I have all the drivers installed, GPU is folding, but I see something weird in the "System info" of FahControl, it is missing cuda even if I installed that.

Code: Select all

OS: Linux 5.3.0-53-generic x86 64
CUDA: Not detected, failed to open dynamic library 'libcuda.so': libcuda.so: cannot open shared object file: no such file or directory
OpenCL Device 0 Platform:0 Device: 0 Bus:14 Slot:0 Compute: 1.2 Driver 440.59
GPU driver was installed by the "driver manager" of Linux Mint, and was properly running after a reboot.. (this time I did not have to tweak in terminal, as last time.)

I installed the Cuda Toolkit too, from synaptic.

There is this file on my system in /usr/lib/i386-linux-gnu
There is a libcuda.so, that is a link to libcuda.so.1, which is a link to libcuda.so.440.59, but somehow the folding program does not know about this.

Log from the last GPU workunit, if it helps:

Code: Select all

01:56:38:WU01:FS01:Received Unit: id:01 state:DOWNLOAD error:NO_ERROR project:14251 run:1038 clone:2 gen:43 core:0x22 unit:0x00000046cedfaa925eab0320630b0fb1
01:56:38:WU01:FS01:Starting
01:56:38:WU01:FS01:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 01 -suffix 01 -version 706 -lifeline 2237 -checkpoint 5 -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -gpu 0
01:56:38:WU01:FS01:Started FahCore on PID 7815
01:56:38:WU01:FS01:Core PID:7819
01:56:38:WU01:FS01:FahCore 0x22 started
01:56:39:WU01:FS01:0x22:*********************** Log Started 2020-05-29T01:56:38Z ***********************
01:56:39:WU01:FS01:0x22:*************************** Core22 Folding@home Core ***************************
01:56:39:WU01:FS01:0x22:       Type: 0x22
01:56:39:WU01:FS01:0x22:       Core: Core22
01:56:39:WU01:FS01:0x22:    Website: https://foldingathome.org/
01:56:39:WU01:FS01:0x22:  Copyright: (c) 2009-2018 foldingathome.org
01:56:39:WU01:FS01:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
01:56:39:WU01:FS01:0x22:             <rafal.wiewiora@choderalab.org>
01:56:39:WU01:FS01:0x22:       Args: -dir 01 -suffix 01 -version 706 -lifeline 7815 -checkpoint 5
01:56:39:WU01:FS01:0x22:             -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -gpu 0
01:56:39:WU01:FS01:0x22:     Config: <none>
01:56:39:WU01:FS01:0x22:************************************ Build *************************************
01:56:39:WU01:FS01:0x22:    Version: 0.0.5
01:56:39:WU01:FS01:0x22:       Date: Apr 22 2020
01:56:39:WU01:FS01:0x22:       Time: 03:57:11
01:56:39:WU01:FS01:0x22: Repository: Git
01:56:39:WU01:FS01:0x22:   Revision: 2d69202c898bd9bb3e093f51cd32bf411c2a0388
01:56:39:WU01:FS01:0x22:     Branch: HEAD
01:56:39:WU01:FS01:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
01:56:39:WU01:FS01:0x22:    Options: -std=c++11 -O3 -funroll-loops
01:56:39:WU01:FS01:0x22:   Platform: linux2 4.19.76-linuxkit
01:56:39:WU01:FS01:0x22:       Bits: 64
01:56:39:WU01:FS01:0x22:       Mode: Release
01:56:39:WU01:FS01:0x22:************************************ System ************************************
01:56:39:WU01:FS01:0x22:        CPU: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
01:56:39:WU01:FS01:0x22:     CPU ID: GenuineIntel Family 6 Model 44 Stepping 2
01:56:39:WU01:FS01:0x22:       CPUs: 24
01:56:39:WU01:FS01:0x22:     Memory: 62.90GiB
01:56:39:WU01:FS01:0x22:Free Memory: 59.93GiB
01:56:39:WU01:FS01:0x22:    Threads: POSIX_THREADS
01:56:39:WU01:FS01:0x22: OS Version: 5.3
01:56:39:WU01:FS01:0x22:Has Battery: false
01:56:39:WU01:FS01:0x22: On Battery: false
01:56:39:WU01:FS01:0x22: UTC Offset: 2
01:56:39:WU01:FS01:0x22:        PID: 7819
01:56:39:WU01:FS01:0x22:        CWD: /var/lib/fahclient/work
01:56:39:WU01:FS01:0x22:         OS: Linux 5.3.0-53-generic x86_64
01:56:39:WU01:FS01:0x22:    OS Arch: AMD64
01:56:39:WU01:FS01:0x22:********************************************************************************
01:56:39:WU01:FS01:0x22:Project: 14251 (Run 1038, Clone 2, Gen 43)
01:56:39:WU01:FS01:0x22:Unit: 0x00000046cedfaa925eab0320630b0fb1
01:56:39:WU01:FS01:0x22:Reading tar file core.xml
01:56:39:WU01:FS01:0x22:Reading tar file integrator.xml
01:56:39:WU01:FS01:0x22:Reading tar file state.xml
01:56:41:WU01:FS01:0x22:Reading tar file system.xml
01:56:43:WU01:FS01:0x22:Digital signatures verified
01:56:43:WU01:FS01:0x22:Folding@home GPU Core22 Folding@home Core
01:56:43:WU01:FS01:0x22:Version 0.0.5
01:57:30:WU01:FS01:0x22:Completed 0 out of 500000 steps (0%)
01:57:30:WU01:FS01:0x22:Temperature control disabled. Requirements: single Nvidia GPU, tmax must be < 110 and twait >= 900
01:58:48:WU01:FS01:0x22:Completed 5000 out of 500000 steps (1%)
02:00:02:WU01:FS01:0x22:Completed 10000 out of 500000 steps (2%)
02:01:16:WU01:FS01:0x22:Completed 15000 out of 500000 steps (3%)
02:02:30:WU01:FS01:0x22:Completed 20000 out of 500000 steps (4%)
02:04:04:WU01:FS01:0x22:Completed 25000 out of 500000 steps (5%)
02:05:18:WU01:FS01:0x22:Completed 30000 out of 500000 steps (6%)

Re: Fahcontrol says Cuda not detected

Posted: Fri May 29, 2020 6:36 am
by foldy
Doesn't matter as CUDA is not used by FAH yet but OpenCL. So everything is fine :-)

Re: Fahcontrol says Cuda not detected

Posted: Fri May 29, 2020 6:41 am
by JohnChodera
Yet...but maybe soon... ;)

Re: Fahcontrol says Cuda not detected

Posted: Fri May 29, 2020 7:47 am
by JimboPalmer
This is my understanding, but may not be fact.
In Windows, the driver direct from the vendor is bundled with CUDA and OpenCL code and both are installed by default.
In Linux, the CUDA and OpenCL code are usually downloaded with the driver but installed separately.
In MacOS, you are limited to the drivers and code in the OS. You do not download new ones.

Re: Fahcontrol says Cuda not detected

Posted: Fri May 29, 2020 1:52 pm
by Joe_H
JimboPalmer wrote:This is my understanding, but may no be fact.
In Windows, the driver is bundled with CUDA and OpenCL code and both are installed by default.
In Linux, the CUDA and OpenCL code are usually downloaded with the driver but installed separately.
In MacOS, you are limited to the drivers and code in the OS. You do not download new ones.
Basically for Windows that is correct for drivers downloaded from nVidia, MS Windows Update driver downloads usually leave out the CUDA and OpenCL support.

For Linux it depends on the repository for the specific version of Linux being used.

Drivers for macOS are limited to those provided with the OS when dealing with AMD GPUs. Downloads for nVidia GPUs are available from nVIdia to support cards up to the GTX 1000 series Paascal based GPUs and on op to OS X 10.13.6 (High Sierra). After that Apple stopped updating the necessary frameworks for the drivers to connect with, and nVidia no longer has a developer license to sign drivers for the later OS versions. Support in later versions is limited to GPUs that were OEM and provided by Apple in the OS.