xmrig / xmrig-cuda

NVIDIA CUDA plugin for XMRig miner
GNU General Public License v3.0
365 stars 154 forks source link

NVIDIA GPU 0: cannot be selected #90

Closed sapmi closed 3 years ago

sapmi commented 3 years ago

Hi There, I' using Ubuntu 18.04' . This the the error I am getting. "NVIDIA GPU 0: cannot be selected"

libxmrig-cuda.so is in the same directory as xmrig. Here is my nvcc --version:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Sun_Feb_14_21:12:58_PST_2021 Cuda compilation tools, release 11.2, V11.2.152 Build cuda_11.2.r11.2/compiler.29618528_0

Here is my nvidia-smi:

-----------------------------------------------------------------------------+ | 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 106... Off | 00000000:06:00.0 On | N/A | | 0% 55C P2 28W / 120W | 891MiB / 6075MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1324 G /usr/lib/xorg/Xorg 14MiB | | 0 N/A N/A 1495 G /usr/bin/gnome-shell 61MiB | | 0 N/A N/A 1845 G /usr/lib/xorg/Xorg 125MiB | | 0 N/A N/A 1960 G /usr/bin/gnome-shell 29MiB | | 0 N/A N/A 2546 G ...AAAAAAAAA= --shared-files 45MiB | | 0 N/A N/A 4719 G ...AAAAAAAA== --shared-files 19MiB

Here is my config_default.h config part:

"api": {
    "id": null,
    "worker-id": null
},
"http": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 0,
    "access-token": null,
    "restricted": true
},
"autosave": true,
"background": true,
"colors": true,
"title": true,
"randomx": {
    "init": -1,
    "init-avx2": -1,
    "mode": "auto",
    "1gb-pages": true,
    "rdmsr": true,
    "wrmsr": true,
    "cache_qos": false,
    "numa": true,
    "scratchpad_prefetch_mode": 1
},
"cpu": {
    "enabled": false,
    "huge-pages": true,
    "huge-pages-jit": false,
    "hw-aes": null,
    "priority": null,
    "memory-pool": false,
    "yield": true,
    "max-threads-hint": 50,
    "asm": true,
    "argon2-impl": null,
    "astrobwt-max-size": 550,
    "astrobwt-avx2": false,
    "cn/0": false,
    "cn-lite/0": false
},
"opencl": {
    "enabled": false,
    "cache": true,
    "loader": null,
    "platform": "AMD",
    "adl": true,
    "cn/0": false,
    "cn-lite/0": false
},
"cuda": {
    "enabled": true,

    "nvml": true,
    "cn/0": false,
    "cn-lite/0": false
},
"donate-level": 1,
"donate-over-proxy": 1,
"log-file": null,
"pools": [
    {
        "algo": null,
        "coin": null,
        "url": "pool.minexmr.com:443",
        "user": "43kWsSn5c7VT5EEtNh13arDXxpUoSxcoDGPxPAiomVZxa1dWQk314a9YBanAZMgstzZJWAeryC9LYFJp1LcuhSGwPtTJ7a8",
        "pass": "x",
        "rig-id": "${USERNAME}",
        "nicehash": false,
        "keepalive": false,
        "enabled": true,
        "tls": true,
        "tls-fingerprint": null,
        "daemon": false,
        "socks5": null,
        "self-select": null,
        "submit-to-origin": false
    }
],
"print-time": 60,
"health-print-time": 60,
"dmi": true,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"tls": {
    "enabled": false,
    "protocols": null,
    "cert": null,
    "cert_key": null,
    "ciphers": null,
    "ciphersuites": null,
    "dhparam": null
},
"user-agent": null,
"verbose": 0,
"watch": true,
"pause-on-battery": false,
"pause-on-active": false

} )===";

What have I done wrong?

Mark

sapmi commented 3 years ago

Update - I installed CUDA the wrong way. To correct I purged as much of my old install as possible, installed via deb network option, then rebuilt xmrig and xmrig cuda. It now works