xmrig / xmrig-cuda

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

Another case of "CUDA disabled (no devices)" #186

Closed Wraaath closed 1 month ago

Wraaath commented 1 year ago

Hey. I installed CUDA on my Proxmox machine (Debian 11) by following the steps on Nvidias CUDA install guide \ While I couldn't add the "contrib"-repo the installation had no other issues.

I then followed the instructions to build the libxmrig-cuda.so-file:

1. git clone https://github.com/xmrig/xmrig-cuda.git
2. mkdir xmrig-cuda/build && cd xmrig-cuda/build
3. cmake .. -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCUDA_ARCH=61
4. make -j$(nproc)

*I used -DCUDA_ARCH=61 as per the version listed for my GPU (GTX 1050) on Nvidias CUDA GPU compute chart \

After all that I just ran:

wget https://github.com/xmrig/xmrig/releases/download/v6.19.3/xmrig-6.19.3-linux-x64.tar.gz
tar -xvzf xmrig-6.19.3-linux-x64.tar.gz
cd xmrig-6.19.3
mv /root/xmrig-cuda/libxmrig-cuda.so /root/xmrig-6.19.3

I then configured my config.json-file:

"cuda": {
        "enabled": true,
        "loader": "./libxmrig-cuda.so",
        "nvml": true,
        "cn-lite/0": false,
        "cn/0": false
}.

And ran:

sudo ./xmrig

Also tried:

"cuda": {
        "enabled": true,
        "loader": null,
        "nvml": true,
        "cn-lite/0": false,
        "cn/0": false
}.

But I keep getting the error "CUDA disabled (no devices)".

Am I using the wrong version of CUDA or something? Or did I install it wrong?