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

CUDA disabled (no devices) #151

Open
kikecastillo opened this issue Jan 28, 2022 · 1 comment
Open

CUDA disabled (no devices) #151

kikecastillo opened this issue Jan 28, 2022 · 1 comment

Comments

@kikecastillo
Copy link

Hello,

GPU: nvidia geforce gtx 1650 ti
OS: Ubuntu 20.04

config.json :
{
...
"cuda": {
"enabled": true,
"loader": null,
"nvml": true,
"cn-lite/0": false,
"cn/0": false
},
"pools": [
{
"url": "pool.supportxmr.com:3333",
"user": "XXXXXXXXXXXXXXXXXXXXXXXX",
"keepalive": true,
"tls": false
}
],
...
}

Logs:

  • ABOUT XMRig/6.16.3 gcc/5.4.0
  • LIBS libuv/1.42.0 OpenSSL/1.1.1l hwloc/2.5.0
  • HUGE PAGES supported
  • 1GB PAGES disabled
  • CPU Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (1) 64-bit AES
    L2:1.5 MB L3:12.0 MB 6C/12T NUMA:1
  • MEMORY 13.1/15.4 GB (85%)
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL Cleanup everything in GPU context when releasing it #1 pool.supportxmr.com:3333 algo auto
  • COMMANDS hashrate, pause, resume, results, connection
  • OPENCL disabled
  • CUDA disabled (no devices)

nvcc --version:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

  • I struggled to compile libxmrig-cuda.so because I got messages like this:

; Valid CUDA Toolkit Map:
; 8.x for Fermi/Kepler /Maxwell/Pascal,
; 9.x for Kepler /Maxwell/Pascal/Volta,
; 10.x for Kepler /Maxwell/Pascal/Volta/Turing,
; 11.x for Kepler (in part)/Maxwell/Pascal/Volta/Turing/Ampere

;Reference https://developer.nvidia.com/cuda-gpus#compute for arch and family name

CMake Error at cmake/CUDA.cmake:71 (message):
Unsupported CUDA architecture '30' specified. Use CUDA v10.x maximum,
Kepler (30) was dropped at v11.
Call Stack (most recent call first):
CMakeLists.txt:81 (include)

-- Configuring incomplete, errors occurred!
See also "/home/edelcastillo/bin/xmrig-cuda/build/CMakeFiles/CMakeOutput.log".

  • I had to do that:
    $ cmake .. -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCUDA_ARCH=50

Anybody has any idea?

Thanks in advance

@Spudz76
Copy link
Contributor

Spudz76 commented Jan 28, 2022

Your GPU is CUDA Capability 7.5

So build it with -DCUDA_ARCH=75

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