xmrig / xmrig-nvidia

Monero (XMR) NVIDIA miner
GNU General Public License v3.0
705 stars 262 forks source link

nvrtcCompileProgram failed: NVRTC_ERROR_INVALID_OPTION #341

Open wufengzc opened 2 years ago

wufengzc commented 2 years ago

[CUDA] Error gpu 0: :878 "device kernel image is invalid"

wufengzc commented 2 years ago
  • ABOUT XMRig-NVIDIA/2.14.5 MSVC/2017

    • LIBS libuv/1.31.0 CUDA/10.0 OpenSSL/1.1.1c microhttpd/0.9.63

    • CPU Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz x64 AES

    • GPU #0 PCI:0000:01:00 NVIDIA GeForce RTX 3060 @ 1777/7501 MHz 64x84 6x25 arch:86 SMX:28 MEM:11275/12287 MiB

    • ALGO cryptonight/r, donate=1%

  • ABOUT XMRig-NVIDIA/2.14.5 MSVC/2017

  • LIBS libuv/1.31.0 CUDA/10.0 OpenSSL/1.1.1c microhttpd/0.9.63

  • CPU Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz x64 AES

  • GPU #0 PCI:0000:01:00 NVIDIA GeForce RTX 3060 @ 1777/7501 MHz 64x84 6x25 arch:86 SMX:28 MEM:11275/12287 MiB

  • ALGO cryptonight/r, donate=1%

  • POOL #1 stc.ss.poolin.one:443 variant r

  • COMMANDS hashrate, health, pause, resume [2022-05-02 10:38:13] use pool stc.ss.poolin.one:443 39.96.193.147 [2022-05-02 10:38:13] new job from stc.ss.poolin.one:443 diff 8192 algo cn/r [2022-05-02 10:38:13] nvrtcCompileProgram failed: NVRTC_ERROR_INVALID_OPTION [2022-05-02 10:38:13] Program compile log: nvrtc: error: invalid value for --gpu-architecture (-arch)

[CUDA] Error gpu 0: :878 "device kernel image is invalid"

Spudz76 commented 2 years ago

CUDA arch:86 (capability 8.6) requires CUDA 11.1 minimum. You have 10.0 somehow, maybe because the last builds were in 2019.

This project is very deprecated and only here for posterity/museum, use normal xmrig combined with the current xmrig-cuda plugin. Most likely this old project won't work correctly with cards newer than when it was abandoned in preference of the plugin.

You will have to build your own xmrig-cuda from source with -DCUDA_ARCH=86 because the release binaries do not include arch:86 and the arch:80 doesn't work (usually the base capability will work, but not for 80+86).