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 CUDA 8 at xmr-stak #2195

Open bycarloz opened 5 years ago

bycarloz commented 5 years ago

Will not return CUDA 8 NVIDIA? for a next update of the miner, It would be good since there are GPU of cuda 8 that give a good hashrate.

psychocrypt commented 5 years ago

you can also use cuda 10 with all gpus from the kepler generation (8years old gpus) if you need cuda 8 it is still supported but we ship no binaries you must compile it by yourself

bycarloz commented 5 years ago

you can also use cuda 10 with all gpus from the kepler generation (8years old gpus) if you need cuda 8 it is still supported but we ship no binaries you must compile it by yourself

the latest version of the miner works with cuda 10?

psychocrypt commented 5 years ago

cuda 8 to 10 is supported

bycarloz commented 5 years ago

xmr

Why don't you recognize cuda 10?

bycarloz commented 5 years ago

what should I do to recognize the cuda 10 since it is compatible to fermi

Spudz76 commented 5 years ago

You must compile to use Fermi cards as they only work with CUDA 8 You must compile to use Fermi cards You must compile

See also the docs section about CUDA

Release binary only built with CUDA 10, 9.2, and 9.1 SDKs now

Your driver supports 9.0 - thus 10 and 9.2 do not work but 9.1 does (except the Fermis)

See the [9.1/9.0] that is the [sdk/driver] CUDA versions and you want them to be equal for best mining results. But since you have Fermi, you also want that to say [8.0/8.0] and then they will begin working. Should also work the newer cards just not the very newest cards.

You must compile with CUDA SDK 8.0, and even then probably also downgrade driver to the last one with CUDA 8.0 inside (approximately 386.28) any newer driver will stop Fermi from working, and any newer SDK will do the same. Blame nVidia.

bycarloz commented 5 years ago

I understand but @psicocript said that 8.0 to 10 is compatible

Spudz76 commented 5 years ago

With XMR-Stak, all those are compatible, yes. With the pre-compiled Release executable pack, you get only 9.1, 9.2, and 10.

If you need CUDA 8.0 (which you do, for Fermi) then you must compile with SDK 8.0 as that is no longer part of the Release. But CUDA 8.0 is still compatible with the code, but not compiled into the Release anymore, to make room for 'most people' who use newer cards due to hash-per-watt (H/W) being multitudes higher.

A Fermi of mine burns 25w and gets 48H (1.9H/W) but on my Maxwell it burns 112w for 440H (3.9H/W) so even that is better by double, Pascal are even better than that (even GT1030 cheap Pascal cards, may score smaller total hashrate compared to GTX1060 but they also sip watts, low cost, and make less heat with a high H/W).

bycarloz commented 5 years ago

eeee I am compiling for cuda 8 and I get that error because?

psychocrypt commented 5 years ago

This is only a warning no error. All looks good.

bycarloz commented 5 years ago

error I'm compiling for cuda 8 but it throws me this error

psychocrypt commented 5 years ago

I can not read our language from the terminal but for cuda 8 you must use the first release of the xmr-stak-dep because those are compiled with Visual Studio v140

bycarloz commented 5 years ago

cuda 8 for xmr-stak 2.7.1 the hashrate decreases to u 15%. I'm going to try with cuda 9.0

bycarloz commented 5 years ago

but there was a hashrate improvement of 5% for the GTX 750TI using cuda 8 in xmr-stak 2.7.1

michalnet commented 5 years ago

What is wrong please

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-02-11 19:30:57] : Mining coin: cryptonight [2019-02-11 19:30:57] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2019-02-11 19:30:57] : WARNING: backend AMD (OpenCL) disabled. [2019-02-11 19:30:57] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' WARNING: NVIDIA Insufficient driver! WARNING: NVIDIA no device found [2019-02-11 19:30:57] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' WARNING: NVIDIA cannot load backend library: xmrstak_cuda_backend_cuda9_2.dll WARNING: NVIDIA Insufficient driver! WARNING: NVIDIA no device found [2019-02-11 19:30:57] : NVIDIA: try to load library 'xmrstak_cuda_backend' NVIDIA: found 1 potential device's [2019-02-11 19:30:57] : WARNING: backend NVIDIA disabled. [2019-02-11 19:30:57] : WARNING: backend CPU disabled. [2019-02-11 19:30:57] : ERROR: No miner backend enabled.

psychocrypt commented 5 years ago

which cuda version do you have installed?

michalnet commented 5 years ago

9.2

psychocrypt commented 5 years ago

windows linux? Do you compiled the miner?

michalnet commented 5 years ago

windows

psychocrypt commented 5 years ago

please update your driver to cuda 10. something is wrong with the driver

michalnet commented 5 years ago

it's same

michalnet commented 5 years ago

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-02-11 20:13:18] : Mining coin: cryptonight_masari [2019-02-11 20:13:18] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2019-02-11 20:13:18] : WARNING: backend AMD (OpenCL) disabled. [2019-02-11 20:13:18] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' WARNING: NVIDIA Insufficient driver! [2019-02-11 20:13:18] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' WARNING: NVIDIA cannot load backend library: xmrstak_cuda_backend_cuda9_2.dll WARNING: NVIDIA Insufficient driver! [2019-02-11 20:13:18] : NVIDIA: try to load library 'xmrstak_cuda_backend' CUDA [9.1/9.0] GPU#0, device architecture 21: "GeForce GT 430"... WARNING: skip device - binary does not contain required device architecture [2019-02-11 20:13:18] : WARNING: NVIDIA setup failed for GPU 0.

[2019-02-11 20:13:18] : NVIDIA: GPU configuration stored in file 'nvidia.txt' NVIDIA: found 1 potential device's [2019-02-11 20:13:18] : WARNING: backend NVIDIA disabled. [2019-02-11 20:13:18] : CPU configuration stored in file 'cpu.txt' [2019-02-11 20:13:18] : WARNING: backend CPU disabled. [2019-02-11 20:13:18] : ERROR: No miner backend enabled. Press any key to exit.

psychocrypt commented 5 years ago

you have still not the correct driver installed. please deinstall the driver fully and than install cuda 10.

michalnet commented 5 years ago

how best deinstall all

michalnet commented 5 years ago

new reinstall cuda 10 and it's same

michalnet commented 5 years ago

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-02-11 20:19:11] : Mining coin: cryptonight_masari [2019-02-11 20:19:12] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2019-02-11 20:19:12] : WARNING: backend AMD (OpenCL) disabled. [2019-02-11 20:19:12] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' WARNING: NVIDIA Insufficient driver! [2019-02-11 20:19:12] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' WARNING: NVIDIA cannot load backend library: xmrstak_cuda_backend_cuda9_2.dll WARNING: NVIDIA Insufficient driver! [2019-02-11 20:19:12] : NVIDIA: try to load library 'xmrstak_cuda_backend' CUDA [9.1/9.0] GPU#0, device architecture 21: "GeForce GT 430"... WARNING: skip device - binary does not contain required device architecture [2019-02-11 20:19:12] : WARNING: NVIDIA setup failed for GPU 0.

[2019-02-11 20:19:12] : NVIDIA: GPU configuration stored in file 'nvidia.txt' NVIDIA: found 1 potential device's [2019-02-11 20:19:12] : WARNING: backend NVIDIA disabled. [2019-02-11 20:19:12] : CPU configuration stored in file 'cpu.txt' [2019-02-11 20:19:12] : WARNING: backend CPU disabled. [2019-02-11 20:19:12] : ERROR: No miner backend enabled. Press any key to exit.

michalnet commented 5 years ago

old version is ok

michalnet commented 5 years ago

[2019-02-11 20:23:43] : Mining coin: cryptonight_masari [2019-02-11 20:23:43] : NVIDIA: GPU configuration stored in file 'nvidia.txt' [2019-02-11 20:23:43] : Starting NVIDIA GPU thread 0, no affinity. [2019-02-11 20:23:43] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2019-02-11 20:23:43] : WARNING: backend AMD (OpenCL) disabled. [2019-02-11 20:23:43] : CPU configuration stored in file 'cpu.txt' [2019-02-11 20:23:43] : WARNING: backend CPU disabled. [2019-02-11 20:23:43] : Fast-connecting to mine-etnocean.thorshammer.cc:6001 pool ... [2019-02-11 20:23:44] : Pool mine-etnocean.thorshammer.cc:6001 connected. Logging in... [2019-02-11 20:23:44] : Difficulty changed. Now: 2500. [2019-02-11 20:23:44] : Pool logged in. [2019-02-11 20:23:44] : New block detected. [2019-02-11 20:23:46] : Result accepted by the pool. [2019-02-11 20:23:54] : Difficulty changed. Now: 5000. [2019-02-11 20:23:54] : New block detected. [2019-02-11 20:24:28] : Result accepted by the pool. [2019-02-11 20:24:38] : Result accepted by the pool. [2019-02-11 20:24:54] : Difficulty changed. Now: 10000. [2019-02-11 20:24:54] : New block detected. [2019-02-11 20:25:46] : New block detected. [2019-02-11 20:26:24] : Difficulty changed. Now: 5714. [2019-02-11 20:26:24] : New block detected. [2019-02-11 20:27:26] : Result accepted by the pool. [2019-02-11 20:27:49] : New block detected. [2019-02-11 20:28:34] : Result accepted by the pool.

Spudz76 commented 5 years ago

See also the docs section about CUDA

CUDA [9.1/9.0] GPU#0, device architecture 21: "GeForce GT 430"... WARNING: skip device - binary does not contain required device architecture

That means your CUDA runtime aka driver support is CUDA 9.0 This Release is compiled for CUDA 10 or 9.2 or 9.1 thus the best it hits for a match is [9.1/9.0] It found the device using that combo (backward compatibility) however since Release is not compiled for CUDA 8.0 then there is no mining kernel compiled for that GPU family (binary does not contain required device architecture)

If you are installing CUDA 10 SDK (for compiling not for running) then that does nothing. You get CUDA 10 by installing a newer driver like 4xx.xx series (brings CUDA 10 runtime with it)

BUT

Your GPU is CUDA capability 2.1 (architecture 21) which means Fermi core which means it has been dropped from all CUDA after 8 (so, 9.0 9.1 9.2 and 10 won't work...)

Install older driver with CUDA 8 runtime inside (around about 386.28). Follow compile docs to set up MSVC build tools for toolkit 14.0 and then download and install CUDA 8 SDK. Compile from source using the deps version 1 and the v140 flags on the cmake commands. Then it will find the old card and work.

Sometimes a newer driver can work, but it is most often best to get it to say [8.0/8.0] in the detection line. Laptops can be more picky about driver versions but this seems like a desktop chip (GT430).

See also the docs section about CUDA

Spudz76 commented 5 years ago

You can also chop a bunch of compile time by using -DCUDA_ARCH=20 on the cmake configure step There is no true "21" therefore you use "20" (it will run). This option causes it not to build for all supported GPU families (everything but your GPU will be binary does not contain required device architecture)