Dr-Noob / gpufetch

Simple yet fancy GPU architecture fetching tool
GNU General Public License v2.0
138 stars 15 forks source link

[ERROR]: No GPU was detected! #51

Closed Krikonildo closed 6 months ago

Krikonildo commented 6 months ago
./gpufetch -v
[WARNING]: Unable to find a valid device for vendor id 0x8086 using pciutils
[ERROR]: No GPU was detected! Available GPUs are:
- GPU 0:
  * Vendor: NVIDIA
  * PCI id: 10de:128b
Please, make sure that the appropiate backend is enabled:
- CUDA backend:  OFF
- Intel backend: ON
Visit https://github.com/Dr-Noob/gpufetch#2-backends for more information
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic
lspci -nn | grep VGA
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)
nvidia-smi
Thu May  9 04:24:19 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.239.06   Driver Version: 470.239.06   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:02:00.0 N/A |                  N/A |
| 50%   58C    P0    N/A /  N/A |    137MiB /   976MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
Dr-Noob commented 6 months ago

Hi, please note the line: CUDA backend: OFF which means that you did not build with CUDA support. Have a look at this to solve the problem.

Krikonildo commented 6 months ago

build.sh

cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CUDA_COMPILER=/usr/bin/nvcc -DCMAKE_CUDA_COMPILER_TOOLKIT_ROOT=/usr/lib/cuda ..

.bashrc

export LD_LIBRARY_PATH=/usr/lib/cuda/lib64\
                          ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
./gpufetch -v
[ERROR]: cudaErrorUnknown: unknown error
[WARNING]: Unable to find a valid device for vendor id 0x8086 using pciutils
[ERROR]: No GPU was detected! Available GPUs are:
- GPU 0:
  * Vendor: NVIDIA
  * PCI id: 10de:128b
Please, make sure that the appropiate backend is enabled:
- CUDA backend:  ON
- Intel backend: ON
Visit https://github.com/Dr-Noob/gpufetch#2-backends for more information
Dr-Noob commented 6 months ago

I'm afraid the error cudaErrorUnknown: unknown error is due to something unrelated to gpufetch. It is likely that the problem is in your CUDA or drivers installation.