xmrig / xmrig-cuda

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

Illegal Memory Access #78

Open AndrewReitz opened 3 years ago

AndrewReitz commented 3 years ago

After a few minutes of running the cuda mining stops after the error

thread #0 failed with error :59 "an illegal memory access was encountered"

Output from the console here. Let me know if there is any more information I can provide.

 * ABOUT        XMRig/6.6.1 MSVC/2019
 * LIBS         libuv/1.40.0 OpenSSL/1.1.1h hwloc/2.2.0
 * HUGE PAGES   permission granted
 * 1GB PAGES    unavailable
 * CPU          AMD Ryzen 7 3700X 8-Core Processor (1) x64 AES
                L2:4.0 MB L3:32.0 MB 8C/16T NUMA:1
 * MEMORY       15.1/31.9 GB (47%)
 * DONATE       5%
 * ASSEMBLY     auto:ryzen
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         11.1/11.1/6.5.0
 * NVML         11.457.30/457.30 press e for health report
 * CUDA GPU     #0 0b:00.0 GeForce RTX 2070 SUPER 1785/7001 MHz smx:40 arch:75 mem:7145/8192 MB

[2020-11-29 09:33:53.932]  net      new job from xmrpool.eu:9999 diff 50000 algo rx/0 height 2241306
[2020-11-29 09:33:53.933]  cpu      use argon2 implementation AVX2
[2020-11-29 09:33:54.216]  msr      register values for "ryzen_17h" preset has been set successfully (283 ms)
[2020-11-29 09:33:54.216]  randomx  init dataset algo rx/0 (16 threads) seed f3f91b3a0db6b09e...
[2020-11-29 09:33:55.095]  randomx  allocated 2336 MB (2080+256) huge pages 11% 128/1168 +JIT (879 ms)
[2020-11-29 09:33:57.900]  randomx  dataset ready (2805 ms)
[2020-11-29 09:33:57.900]  cpu      use profile  rx  (16 threads) scratchpad 2048 KB
[2020-11-29 09:33:58.401]  nvidia   use profile  rx  (1 thread) scratchpad 2048 KB
|  # | GPU |  BUS ID | INTENSITY | THREADS | BLOCKS | BF |  BS | MEMORY | NAME
|  0 |   0 | 0b:00.0 |      2432 |      32 |     76 |  6 |  25 |   4864 | GeForce RTX 2070 SUPER
[2020-11-29 09:33:58.427]  cpu      READY threads 16/16 (16) huge pages 100% 16/16 memory 32768 KB (527 ms)
[2020-11-29 09:33:58.956]  nvidia   READY threads 1/1 (546 ms)
[2020-11-29 09:34:11.086]  nvidia   thread #0 failed with error <RandomX_Monero::hash>:59 "an illegal memory access was encountered"
Spudz76 commented 3 years ago

RandomX is useless on GPUs anyway (note it's only making one thread on such a powerful card)

Compile CPU-only version and separate CUDA version and run them separately but parallel, then they can do different algos (if on MoneroOcean or other multi-mining supported pool).

Or if you only want RandomX based algos, forget using the GPU it's a headache and also horrible hash-per-watt (as designed).