CryptoGraphics / lyclMiner

OpenCL Lyra2REv2/v3 miner for AMD GCN GPUs
GNU General Public License v3.0
45 stars 19 forks source link

Support for AMD Radeon VII in ASM mode. #20

Closed aumaype closed 5 years ago

aumaype commented 5 years ago

I've been using lyclMiner OK with a Radeon RX-580 under Ubuntu 19.04 and am getting around 46MH/S with Lyvra2rev3, using ROCm and the ASM kernel.

Now I'm trying it with a MSI Radeon VII card - and would expect about 90MH/S, but am only getting around 65 MH/S. Miner cannot create the ASM file. I added a small debug comment to src/Applets/AppLyra2REv3.hpp to display the ASM filename (which does exist on this system)

Miner output is as follows:

[2019-05-13 12:56:06] lyclMiner beta 0.2.1. [2019-05-13 12:56:06] Developer: CryptoGraphics ( CrGraphics@protonmail.com ).

[2019-05-13 12:56:06] Loaded a config file (lyclMiner.conf) successfully [2019-05-13 12:56:06] Starting Stratum on stratum+tcp://xxxxxxxxxxxxxxxxxxx [2019-05-13 12:56:06] 1 worker threads started, using Lyra2REv3 algorithm. [2019-05-13 12:56:06] Stratum difficulty set to 128 [2019-05-13 12:56:06] block 1137997, diff 25325.057 Failed to create ASM program(lyra441p2(rev3)). Device(gfx906+sram-ecc) Platform index(0) asmProgramFileName kernels/lyra441p2/rev3/lyra441p2_gfx9_rocm.bin [2019-05-13 12:56:10] Device: 0 max runs: 512 [2019-05-13 12:56:10] Device: 0 has completed its nonce range [2019-05-13 12:56:19] Stratum difficulty set to 128 [2019-05-13 12:56:19] Device #0: 570.43 MH, 65.18 MH/s [2019-05-13 12:56:19] Device: 0 has completed its nonce range [2019-05-13 12:56:25] Device #0: 402.65 MH, 65.15 MH/s [2019-05-13 12:56:25] Device: 0 has completed its nonce range [2019-05-13 12:56:55] Device #0: 1962.93 MH, 65.08 MH/s [2019-05-13 12:56:55] Device: 0 has completed its nonce range [2019-05-13 12:57:00] Share submitted.

Any ideas ?

Regards, mpe.

CryptoGraphics commented 5 years ago

Hello. Can you check this kernel? Replace file kernels/lyra441p2/rev3/lyra441p2_gfx9_rocm.bin with this one. https://mega.nz/#!eCJEHQQC!HiPikYnVH6QPYn8QkyFiIgVSdHQpMwfsMT8hl3bktHg

aumaype commented 5 years ago

Thank You,

That solved the problem - getting just over 100 MH/s now:

[2019-05-19 08:53:00] lyclMiner beta 0.2.1. [2019-05-19 08:53:00] Developer: CryptoGraphics ( CrGraphics@protonmail.com ).

[2019-05-19 08:53:00] Loaded a config file (lyclMiner.conf) successfully [2019-05-19 08:53:01] 1 worker threads started, using Lyra2REv3 algorithm. [2019-05-19 08:53:01] Starting Stratum on stratum+tcp://lyra2rev3.eu.nicehash.com:3373 [2019-05-19 08:53:02] Device: 0 max runs: 512 [2019-05-19 08:53:12] Stratum difficulty set to 128 [2019-05-19 08:53:12] block 1141316, diff 23795.656 [2019-05-19 08:53:12] Device: 0 has completed its nonce range [2019-05-19 08:53:19] Share submitted. [2019-05-19 08:53:19] Device #0: 721.42 MH, 104.55 MH/s [2019-05-19 08:53:19] Accepted 1/1 (100%), 721.42 MH, 104.55 MH/s [2019-05-19 08:53:23] Share submitted. [2019-05-19 08:53:23] Device #0: 369.10 MH, 104.53 MH/s [2019-05-19 08:53:23] Accepted 2/2 (100%), 369.10 MH, 104.53 MH/s [2019-05-19 08:53:43] Share submitted. [2019-05-19 08:53:43] Device #0: 2080.37 MH, 103.93 MH/s [2019-05-19 08:53:43] Accepted 3/3 (100%), 2080.37 MH, 103.93 MH/s [2019-05-19 08:53:53] Share submitted. [2019-05-19 08:53:53] Device #0: 1090.52 MH, 103.27 MH/s [2019-05-19 08:53:53] Device: 0 has completed its nonce range [2019-05-19 08:53:53] Accepted 4/4 (100%), 1090.52 MH, 103.27 MH/s [2019-05-19 08:54:03] Share submitted. [2019-05-19 08:54:03] Device #0: 964.69 MH, 103.02 MH/s [2019-05-19 08:54:03] Accepted 5/5 (100%), 964.69 MH, 103.02 MH/s [2019-05-19 08:54:05] Share submitted. [2019-05-19 08:54:05] Device #0: 243.27 MH, 102.90 MH/s [2019-05-19 08:54:05] Accepted 6/6 (100%), 243.27 MH, 102.90 MH/s

Kind Regards, mpe.

xq0404 commented 5 years ago

Congrats