Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR]: No GPU was detected! #51

Closed
Krikonildo opened this issue May 9, 2024 · 3 comments
Closed

[ERROR]: No GPU was detected! #51

Krikonildo opened this issue May 9, 2024 · 3 comments

Comments

@Krikonildo
Copy link

./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
Copy link
Owner

Dr-Noob commented May 9, 2024

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
Copy link
Author

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
Copy link
Owner

Dr-Noob commented May 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants