NebuTech / NBMiner

GPU Miner for ETH, RVN, BEAM, CFX, ZIL, AE, ERGO
https://nbminer.com
3.17k stars 517 forks source link

ERROR - No GPU available for mining #120

Open JackGzj opened 4 years ago

JackGzj commented 4 years ago

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 - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
nebutech-admin commented 4 years ago

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.

JackGzj commented 4 years ago

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.

jacobq commented 3 years ago

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 - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ```
skinnyapemasturb8 commented 3 years ago

im having the same problem

gaodq commented 3 years ago

I have the same problem too!!

hangzhouljp commented 3 years ago

I have the same problem too!! image

Siftah commented 3 years ago

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

satou9029 commented 3 years ago

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

MatthewRalston commented 3 years ago

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.

wagnerfontes2 commented 2 years ago

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.

dbuchacher commented 2 years ago

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

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)

soshimee commented 2 years ago

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
UltimaGraf commented 1 year ago

[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 Хотел спросить что за ошибка и почему такой хашрейт низкий, буду благодарен если кто объяснит. Спасибо

Abdelrazaknadam commented 1 year ago

j ai le mm probleme mais je suis a windows

Sidina-667 commented 1 year ago

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?

mrcuix commented 1 year ago

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