NBMiner icon indicating copy to clipboard operation
NBMiner copied to clipboard

ERROR - No GPU available for mining

Open JackGzj opened this issue 5 years ago • 16 comments

When I am using NBminer in ubuntu, I had the following output under command nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.48                 Driver Version: 410.48                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:3B:00.0 Off |                  N/A |
| 36%   61C    P2    83W / 250W |  10720MiB / 11178MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 1080    Off  | 00000000:AF:00.0 Off |                  N/A |
| 27%   29C    P8     6W / 180W |     10MiB /  8119MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  GeForce GTX 107...  Off  | 00000000:D8:00.0 Off |                  N/A |
| 27%   30C    P8     5W / 180W |     10MiB /  8119MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

But NBMiner gave

[21:39:15] ERROR - No GPU available for mining.
[21:39:15] ERROR - Devices initialize failed.
[21:39:15] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[21:39:15] ERROR - Mining program unexpected exit. 
[21:39:15] ERROR - Reason: Unknown error
[21:39:15] ERROR - Restart miner after 10 secs ... 
[21:39:15] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

JackGzj avatar Nov 26 '19 13:11 JackGzj

Which specific version of Ubuntu are you using? Can you try reinstall nvidia driver and give it another shot? The miner depends on driver and libcuda.so, make sure you have them both installed well and libcuda.so in LD_LIBRARY_PATH.

nebutech-admin avatar Nov 27 '19 01:11 nebutech-admin

Which specific version of Ubuntu are you using? Can you try reinstall nvidia driver and give it another shot? The miner depends on driver and libcuda.so, make sure you have them both installed well and libcuda.so in LD_LIBRARY_PATH.

I am using Ubuntu 16.04.6, and I have under command sudo find / -name 'libcuda.so*' -maxdepth 10

/usr/share/man/man7/libcuda.so.7
/usr/local/cuda-9.2/lib64/stubs/libcuda.so
/usr/local/cuda-9.2/doc/man/man7/libcuda.so.7
/usr/local/cuda-10.0/lib64/stubs/libcuda.so
/usr/local/cuda-10.0/doc/man/man7/libcuda.so.7
/usr/local/cuda-10.1/doc/man/man7/libcuda.so.7
/usr/local/cuda-10.1/targets/x86_64-linux/lib/stubs/libcuda.so
/usr/lib32/libcuda.so
/usr/lib32/libcuda.so.410.48
/usr/lib32/libcuda.so.1
/usr/lib/x86_64-linux-gnu/libcuda.so.410.48
/usr/lib/x86_64-linux-gnu/libcuda.so.1

Other people is using this machine so it's not quite convenience to reinstall the nvidia drive.

JackGzj avatar Nov 27 '19 02:11 JackGzj

I am stuck at this same point. Where can I find more information about what other dependencies I need to set up? (e.g. the driver mentioned earlier?)

Output
$ nvidia-smi
Mon Dec 14 01:24:48 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02    Driver Version: 450.80.02    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| 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  Quadro K1200        Off  | 00000000:01:00.0 Off |                  N/A |
| 43%   46C    P0     1W /  35W |      0MiB /  4040MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

$ ls -al /usr/lib/x86_64-linux-gnu/libcuda*
-rw-r--r-- 1 root root 1041380 Oct 16 12:42 /usr/lib/x86_64-linux-gnu/libcudadevrt.a
lrwxrwxrwx 1 root root      17 Dec  3 15:21 /usr/lib/x86_64-linux-gnu/libcudart.so -> libcudart.so.11.0
lrwxrwxrwx 1 root root      20 Dec  3 15:21 /usr/lib/x86_64-linux-gnu/libcudart.so.11.0 -> libcudart.so.11.1.74
-rw-r--r-- 1 root root  540184 Oct 16 12:42 /usr/lib/x86_64-linux-gnu/libcudart.so.11.1.74
-rw-r--r-- 1 root root  985566 Oct 16 12:42 /usr/lib/x86_64-linux-gnu/libcudart_static.a
lrwxrwxrwx 1 root root      53 Dec 13 23:32 /usr/lib/x86_64-linux-gnu/libcuda.so -> /etc/alternatives/nvidia--libcuda.so-x86_64-linux-gnu
lrwxrwxrwx 1 root root      55 Dec 13 23:32 /usr/lib/x86_64-linux-gnu/libcuda.so.1 -> /etc/alternatives/nvidia--libcuda.so.1-x86_64-linux-gnu


$ ./nbminer -a kawpow --url ...
[01:25:50] INFO - ----------------------------------------------
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - |         NBMiner - Crypto GPU Miner         |
[01:25:50] INFO - |                    34.5                    |
[01:25:50] INFO - |                                            |
[01:25:50] INFO - ----------------------------------------------
[01:25:50] INFO - ------------------- System -------------------
[01:25:50] INFO - OS:     Debian GNU/Linux bullseye/sid, 5.9.0-2-amd64
[01:25:50] INFO - CPU:    Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[01:25:50] INFO - RAM:    30753 MB / 32073 MB
[01:25:50] INFO - ------------------- Config -------------------
[01:25:50] INFO - ALGO:   kawpow
[01:25:50] INFO - URL:    stratum+tcp://...
[01:25:50] INFO - USER:   ...
[01:25:50] INFO - TEMP:   90C
[01:25:51] ERROR - Devices initialize failed.
[01:25:51] ERROR - No GPU available for mining.
[01:25:51] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[01:25:51] ERROR - Mining program unexpected exit.
[01:25:51] ERROR - Code: 255, Reason: Unknown error
[01:25:51] ERROR - Restart miner after 10 secs ...
[01:25:51] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

jacobq avatar Dec 14 '20 07:12 jacobq

im having the same problem

skinnyapemasturb8 avatar Feb 11 '21 18:02 skinnyapemasturb8

I have the same problem too!!

gaodq avatar Apr 15 '21 10:04 gaodq

I have the same problem too!! image

hangzhouljp avatar Apr 29 '21 09:04 hangzhouljp

You perhaps don't have the necessary opencl drivers installed for NBMiner to find, try this: sudo apt-get install opencl-*amdgpu*

Siftah avatar Apr 30 '21 11:04 Siftah

You perhaps don't have the necessary opencl drivers installed for NBMiner to find, try this: sudo apt-get install opencl-*amdgpu*

I got this driver and install opencl. It works well. https://drivers.amd.com/drivers/linux/amdgpu-pro-21.10-1247438-ubuntu-20.04.tar.xz ./amdgpu-install --opencl=legacy --headless --no-dkms

satou9029 avatar May 29 '21 04:05 satou9029

same issue.

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| 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  GeForce GTX 108...  Off  | 00000000:0B:00.0 Off |                  N/A |
| 41%   62C    P8    12W / 250W |      2MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 108...  Off  | 00000000:0C:00.0 Off |                  N/A |
| 36%   54C    P8    13W / 250W |      2MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
[00:16:44] ERROR - Devices initialize failed.
[00:16:44] ERROR - No GPU available for mining.
[00:16:44] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:16:44] ERROR - Mining program unexpected exit. 
[00:16:44] ERROR - Code: 255, Reason: Unknown error
[00:16:44] ERROR - Restart miner after 10 secs ... 
[00:16:44] ERROR - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

OS: Ubuntu 18.04.2 CPU: AMD Ryzen Threadripper

dileep021 avatar Jun 13 '21 05:06 dileep021

This thread should be separated into the AMD gpu issue, and the Nvidia card detection issues separately. It seems like the common thread is linux however.

MatthewRalston avatar Jun 14 '21 15:06 MatthewRalston

You perhaps don't have the necessary opencl drivers installed for NBMiner to find, try this: sudo apt-get install opencl-*amdgpu*

I got this driver and install opencl. It works well. https://drivers.amd.com/drivers/linux/amdgpu-pro-21.10-1247438-ubuntu-20.04.tar.xz ./amdgpu-install --opencl=legacy --headless --no-dkms

Any news on this topic? I have the same issue with AMD GPUs and installing this driver did not solve it.

wagnerfontes2 avatar Apr 17 '22 15:04 wagnerfontes2

this is how I did it a couple of months ago on ubuntu

  • https://github.com/dbuchacher/linux/blob/main/ubuntu-gpu-mining.md

today I have a new issue with trying to install it on Gentoo Linux. (which doesn't support .dep or .rpm files the and site provides)

  • so if anybody has any pointers on this that would be nice.

dbuchacher avatar Apr 22 '22 00:04 dbuchacher

Happens after resuming from lock/sleep for me. Can be fixed with these commands on nvidia it looks like

sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm

soshimee avatar May 25 '22 03:05 soshimee

[23:47:06] INFO - ---------------------------------------------- [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | | [23:47:06] INFO - | NBMiner - Crypto GPU Miner | [23:47:06] INFO - | 42.3 | [23:47:06] INFO - | | [23:47:06] INFO - ---------------------------------------------- [23:47:06] INFO - ------------------- System ------------------- [23:47:06] INFO - OS: Windows 10 Version 1809, 10.0.17763 [23:47:06] INFO - CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz [23:47:06] INFO - RAM: 10260 MB / 16334 MB [23:47:06] INFO - VMEM: 10635 MB / 21924 MB [23:47:06] ERROR - Error resolving function: nvmlDeviceSetGpuLockedClocks [23:47:06] INFO - CL_DRV: 22.8.2 |ID|Device|Hashrate|Accept|Reject|Inv|Powr|CTmp|MTmp|Fan|CClk|GMClk|RV|MUtl|Eff/Watt| [23:48:41] INFO - | 0| 580| 6.122 M| 0| 0| 0| 33| 44| | 0| 300| 300| | 0| 185.5 K| [23:48:41] INFO - |------------------+------+------+---+----+------------------+-------------+--------| [23:48:41] INFO - | Total: 6.122 M| 0| 0| 0| 33| Uptime: 0D 00:01 CPU: 2%|

I wanted to ask what kind of error and why such a hash rate is low, I would be grateful if someone explains. Thanks Хотел спросить что за ошибка и почему такой хашрейт низкий, буду благодарен если кто объяснит. Спасибо

UltimaGraf avatar Oct 16 '22 22:10 UltimaGraf

j ai le mm probleme mais je suis a windows

Abdelrazaknadam avatar Jan 02 '23 23:01 Abdelrazaknadam

I am using Windows 11 . I have the No GPU available for mining. error. What can i do? What do i have to install and where can i find it?

Sidina-667 avatar Jan 27 '23 00:01 Sidina-667

I am using Windows 11 . I have the No GPU available for mining. error. What can i do? What do i have to install and where can i find it?

+1

mrcuix avatar Aug 13 '23 14:08 mrcuix