fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

NVIDIA: 2 threads throw error 'NVIDIA Invalid Result GPU ID n' #2158

Open UselessGuru opened 5 years ago

UselessGuru commented 5 years ago

Problem

XMR-Stak (2.7.1 on Windows 10 17763.195) Miner fails to validate hash at the pool if mining with two threads with NVIDIA

This thread config fails: ThreadsConfig-NVIDIA-CryptonightHeavy-GTX1080Ti-2.txt

Single thread config is fine: ThreadsConfig-NVIDIA-CryptonightHeavy-GTX1080Ti-1.txt

Config file: Config-NVIDIA-CryptonightHeavy-GTX1080Ti-4000.txt

Pool file: Pools-NiceHash-CryptonightHeavy.txt

Command line used: xmr-stak.exe --poolconf Pools-NiceHash-CryptonightHeavy.txt --config Config-NVIDIA-CryptonightHeavy-GTX1080Ti-4000.txt --noCPU --noAMD --nvidia ThreadsConfig-NVIDIA-CryptonightHeavy-GTX1080Ti-2.txt --openCLVendor NVIDIA --noUAC --httpd 4000

AMD (RX 570) is working fine with 2 threads, e.g.: ThreadsConfig-AMD-CryptonightHeavy-Ellesmere4GB-2.txt

psychocrypt commented 5 years ago

Which cuda version du you use?

UselessGuru commented 5 years ago

NVidia driver 417.35 (CUDA 10.0.132)

UselessGuru commented 5 years ago

Any news?

psychocrypt commented 5 years ago

howmuch invalid results do you have. I have no windows with an nvidia gpu so I can not reproduce the issue :(

Am Di., 15. Jan. 2019, 23:09 hat Useless Guru notifications@github.com geschrieben:

Any news?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/2158#issuecomment-454570781, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtvRVXIG4OEHBokYr47CeP3Ta3sJkks5vDlGOgaJpZM4ZnUEt .

UselessGuru commented 5 years ago

howmuch invalid results do you have.

100%. The miner bails out before mining.

psychocrypt commented 5 years ago

could you please start the miner without nvidia.txt and post all (really all) output from the screen.

UselessGuru commented 5 years ago

post all (really all) output from the screen.


xmr-stak.exe --poolconf Pools-NiceHash-CryptonightHeavy.txt --config Config-NVIDIA-CryptonightHeavy-GTX1080Ti-4000.txt --noCPU --noAMD --openCLVendor NVIDIA --noUAC --httpd 4000
-------------------------------------------------------------------
xmr-stak 2.7.1 7d6cd31b1

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on NVIDIA mining code by KlausT and psychocrypt. Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%


You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

Upcoming xmr-stak-gui is sponsored by:

__ ____

| __ \ / \

#| |/ / | / \/

|| #| /| | | | / \ | | | | | || '|| '|/ | ' \ / __|| | | |

| |\ | || || () || _/| || || | | | | /| | | || ( | || |

_| _|_, | _/ __/ __,||| || _||| || _| __, |

/ | / |
              |___/   https://ryo-currency.com                       |___/

This currency is a way for us to implement the ideas that we were unable to in Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.

[2019-01-22 08:48:41] : Mining coin: cryptonight_heavy [2019-01-22 08:48:41] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' CUDA [10.0/10.0] GPU#0, device architecture 61: "GeForce GTX 1080 Ti"... device init succeeded [2019-01-22 08:48:42] : NVIDIA: GPU configuration stored in file 'nvidia.txt' NVIDIA: found 1 potential device's [2019-01-22 08:48:42] : Starting NVIDIA GPU thread 0, no affinity. CUDA [10.0/10.0] GPU#0, device architecture 61: "GeForce GTX 1080 Ti"... device init succeeded [2019-01-22 08:48:42] : NVIDIA: use library 'xmrstak_cuda_backend_cuda10_0' [2019-01-22 08:48:42] : Fast-connecting to cryptonightheavy.eu.nicehash.com:3364 pool ... [2019-01-22 08:48:42] : Pool cryptonightheavy.eu.nicehash.com:3364 connected. Logging in... [2019-01-22 08:48:42] : Difficulty changed. Now: 50000. [2019-01-22 08:48:42] : Pool logged in. [2019-01-22 08:49:42] : Result accepted by the pool. HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | 1104.6 | (na) | (na) | Totals (NVIDIA): 1104.6 0.0 0.0 H/s

Totals (ALL): 1104.6 0.0 0.0 H/s Highest: 1114.0 H/s


> could you please start the miner without nvidia.txt

I think you are missing the point here because the nvidia config file is the root of the problem :-)

This is the created single thread [nvidia.txt](https://github.com/fireice-uk/xmr-stak/files/2781761/nvidia.txt). This is fine.

It it the double threads on NVIDIA that fail.
Spudz76 commented 5 years ago

I fully understand but do not know why you are trying AMD/OpenCL tricks with CUDA. CUDA most likely does weird things with more than one compute session per card. You might get it to do something in OpenCL mode (--noNVIDIA --openCLVendor NVIDIA) but then config goes in amd.txt and I'm pretty sure that won't work either, or if it does it won't be faster in sum total than the normal single CUDA thread jacked up to max work.

Spudz76 commented 5 years ago

Oh and, if you use --noAMD then other opencl options like --openCLVendor NVIDIA do nothing at all. (your original post command line)

UselessGuru commented 5 years ago

Oh and, if you use --noAMD then other opencl options like --openCLVendor NVIDIA do nothing at all. (your original post command line)

Thank you for this information. The documentation is not very clear on this (at least to me).

UselessGuru commented 5 years ago

I fully understand but do not know why you are trying AMD/OpenCL tricks with CUDA.

I don't understand. I just take the autocreated NVIDIA config and double the threads. Other miners, e.g. XmrigCryptonight perform slightly better with 2 threads.

psychocrypt commented 5 years ago

I will look into it after the next release. There is somewhere a race condition.