winmkx



Offline



Activity: 86

Merit: 0







NewbieActivity: 86Merit: 0 mkxminer: Fast Lyra2Z/Lyra2rev2 miner for AMD GPU (ZCoin, GINcoin, VERT, MONA... November 05, 2017, 05:59:36 AM

Last edit: October 27, 2018, 01:46:08 AM by winmkx #1 This is a locked thread! Please use new thread: https://bitcointalk.org/index.php?topic=5058058 for fastest Lyra2Z miner.

If you are here for lyra2rev2 miner, then links are still here. But be warned that Lyra2rev2 is now dominated by ASICs and is no longer profitable to mine.







mkxminer: Assembler-optimized Lyra2rev2/Lyra2Z miner for AMD GPUs (ZCoin, GINcoin, Vertcoin, Monacoin, Verge)



screenshot:



mkxminer: Assembler-optimized Lyra2rev2/Lyra2Z miner for AMD GPUs (ZCoin, GINcoin, Vertcoin, Monacoin, Verge)



!!! Only works with AMD videocards. No NVidia, Intel, CPU or ASICs !!!





=== List of Lyra2rev2 coins

Vertcoin [VTC] -

Mona [MONA] -

Verge [XVG] -

Straks [STAK] -

Shieldcoin [XSH] -

RACE -

KREDS -



=== List of Lyra2Z coins

ZCoin [XZC] -

GINcoin [GIN] -

Gentarium [GTM] -

ZCore -

MANO -

MCT -









=== List of recommended pools (with BTC payouts)

https://zpool.ca

https://www.nicehash.com





=== Usage (Windows)

Try running example.cmd (change -u option value to your login and -p option to your password).

If it works ok, then try running best.cmd (it uses assembler kernels).

If it is working, then you may want to tweak some settings, see Options section below.



If you are getting errors about unsupported videocard or if you have an Intel CPU and AMD GPUs, try running example2platforms.cmd.



You can also check out bestfarm.cmd for a useful script, which will name your miners according to their local IP address.



Press 'q' to exit the app.







=== Usage (Linux)

!!! TODO: mkxminer is 64bit since version 4.0. The readme below will change once Linux bins are released !!!



It is recommended to use mkxminer under Windows. But if you have to use Linux, then ./example.sh is your starting point.

Command line parameters are the same for Linux and Windows.



Note: mkxminer is a 32-bit application. So if you are using a 64 bit application, like Ubuntu 16.04 x64, then you need

to install some some required libraries. Execute these commands in a terminal in case you're on Ubuntu x64:

sudo dpkg --add-architecture i386

sudo apt-get update

sudo apt-get install libc6:i386 libstdc++6:i386



If you execute ./mkxminer and it just closes without printing anything, then you don't have 32 bit support (see above).



Error: ./mkxminer: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

Reason: You don't have 32bit OpenCL installed. If you added 32 bit support (like written above), you may need to reinstall AMD drivers.



Error: Frontend phase failed compilation.

Error: Compilation from LLVMIR binary to IL text failed!

Reason: the AMD driver is not compatible with mkxminer. Try another driver. You can see AMD GPU-PRO version by executing:

dpkg -l amdgpu-pro



For example, amdgpu-pro-17.40-492261.tar.xz and amdgpu-pro-17.40-483984.tar.xz show this problem on RX480, but work fine on R9 390.



If you have some problems - please report via PM in bitcointalk.



Known issue: once you quit mkxminer, the current terminal window becomes unusable. Close terminal and open a new one.



Press 'q' to exit the app. Do NOT press Ctrl+C or you'll get a zombie process.







=== Options

--algorithm or -a - Selected mining algorithm. Two options: lyra2rev2 or lyra2z

-o or --url - URL of the stratum server (ex: stratum+tls://stak.suprnova.cc:7710)

You can currently only specify one pool, no backups supported.

-u or --user - Username for stratum server

-p or --pass - Password for stratum server

-d or --device - Select device to use, one value, range and/or comma separated (e.g. 0-2,4) default: all

-I or --intensity - Intensity of GPU scanning (23 for high end cards, 20 for low end)

--exitsick - Exit miner if one of GPUs becomes sick (so that you can create a script to restart app / reboot PC)

--asm - Will enable ASM kernels for supported GPUs (Vega, Fiji, Ellesmere, Tonga, Hawaii, Tahiti, Oland currently)

for about 10% extra speed. Note: this may crash your miner, especially on some Ellesmere cards.

Recommended 16.10.3 driver or latest AMD / beta blockchain driver.



--platform - Select OpenCL platform ID to use for GPU mining. Default is autodetect.

--engine - GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 1050-1100,900,750-850)

--fan - GPU fan percentage range - one value, range and/or comma separated list (e.g. 0-85,100,100). Fan 100% recommended for pro mining.

--map - Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)

--memclock - Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card

--powertune - Set the GPU powertune percentage - one value for all or separate by commas for per card

--reorder - Attempt to reorder GPU devices according to PCI Bus ID

--vddc - Set the GPU voltage in Volts - one value for all or separate by commas for per card



--auto-fan - Automatically adjust all GPU fan speeds to maintain a target temperature

--auto-gpu - Automatically adjust all GPU engine clock speeds to maintain a target temperature

--temp-cutoff - Temperature which a device will be automatically disabled at, one value or comma separated list

--temp-overheat - Temperature which a device will be throttled at while automanaging fan and/or GPU, one value or comma separated list

--temp-target - Temperature which a device should stay at while automanaging fan and/or GPU, one value or comma separated list





=== Speeds Lyra2rev2 (no overclocking)

Radeon Pro Duo: 84.8MHs (42.4 + 42.4)

Fiji: 55MHs

Vega56: 53MHs

RX 580: 39MHs

RX 480: 36MHs

R9 390: 32MHs

R9 380X: 26MHs

R9 280X: 26MHs



=== Speeds Lyra2z (no overclocking)

Vega64: 7.4MHs

RX 580: 3.7MHs

RX 480: 3.5MHs

R9 390: 1.8MHs





* Note: the actual mining speed is a bit higher as some of the hashrate is used as devfee. The above values are what you (the miner) gets.

Other miners with devfee show you the total hashrate and then you have to reduce it by devfee: for example,

if you have 30MHs with 5% devfee, then effectively it is 28.5MHs for you (30 * (1.0 - 0.05)).

This miner shows you exactly the MHs that you earn, so devfee value is irrelevant.



You do not have to use this miner. For a free open-source option, please use





============

Note regarding mkxminer:



- Please use beta blockchain driver. Link:



I use it myself on RX580 and Vega. Running absolutely rock solid.



There are reports, that latest 18.x drivers don't work properly.



- Do not use lyra2rev2 anymore, it is not profitable. Lyra2Z is much better.



- New version will have higher mining speed and Linux support. ETA: This month (October).



- There will be no more Lyra2rev2 support (does not make any sense, because of ASICs).



PS: If you need any comments from me, please send PM. Unfortunately, I don't have time to constantly monitor this forum.

============









=== Tweaking

There are pretty much only two things to tweak:

1) Increase GPU frequency. Memory frequency is not important.

2) Increase intensity. 23 is recommended for 4GB+ videocards on Lyra2rev2 (or 18 for Lyra2Z).







=== Version history

v1.0.0: 11 November 2017 - Initial nicehash version.

v1.0.1: 12 November 2017 - Added missing DLL and fixed gfx901 problem.

v2.0.0: 5 December 2017 - Rewritten + tls pools supported.

v2.0.1: 12 December 2017 - Added VTC pool, AMD platform autodetection.

v3.0.0: 23 December 2017 - stratum+tcp pools are now supported.

v3.0.1: 9 January 2018 - Fixed problem with pools not supporting extranonce, 'q' to exit, Linux port, cleaned up dlls.

v3.1.0: 8 February 2018 - Better Linux compatibility and non-TLS/SSL pools supported. Fixed some pool disconnections.

v3.1.0: 12 February 2018 - Added optimised Vega kernel. Combined Windows+Linux packaging.



v4.0 beta: 9 September 2018

- Added Lyra2z

- Now 64 bit binaries only, no more 32 bit

- Now only asm optimized kernels (removed --asm parameter)

- Removed support for legacy Cards (prior to R9 290)

- Reduced distribution size

- Beta release: only windows and only lyra2z (linux and lyra2rev2 with some optimizations will be available in full release)



v4.1: 27 October 2018

- Linux build + Windows build

- About 5% speed increase



* Coming soon *

- API support







=== Latest version 4.1.0 (Linux + Windows)

MD5: 23f309f5a041ec43120dfbd0ee8162cc

Virustotal report



Link1

Link2





=== OLD versions

[lyra2Z only] Version 4.0.0 BETA Windows

MD5: 6708c7c02f6d29b92bb4f17c86f8203d

Virustotal report



Link1

Link2



[lyra2rev2 only] Latest version 3.1.0 Windows

MD5: 546f89ef835aa5a6af74b12e016dca55

Virustotal report



Link1

Link2





[lyra2rev2 only] Previous version 3.0.1 Windows

MD5: 83db821ce8de0cbd0766a69560635574

Virustotal report



Windows version 3.0.0 and later work with any stratum+tcp pools. For example: mkxminer.exe --exitsick --asm -o stratum+tcp://lyra2.easymine.online:5000 -u Vjjhnmiy2HAfWBq4n7mn7NmUPVki12unyi -p x -I 23



Link1

Link2



[lyra2rev2 only] version 3.1.0 Linux

MD5: 906e456c1cd8112dfe0a357f6f151f79

Virustotal report



Link1

Link2

mkxminer: Assembler-optimized Lyra2rev2/Lyra2Z miner for AMD GPUs (ZCoin, GINcoin, Vertcoin, Monacoin, Verge)screenshot: https://i.imgur.com/yXYbzc1.png mkxminer: Assembler-optimized Lyra2rev2/Lyra2Z miner for AMD GPUs (ZCoin, GINcoin, Vertcoin, Monacoin, Verge)!!! Only works with AMD videocards. No NVidia, Intel, CPU or ASICs !!!=== List of Lyra2rev2 coinsVertcoin [VTC] - https://bitcointalk.org/index.php?topic=404364.0 Mona [MONA] - https://bitcointalk.org/index.php?topic=392436.0 Verge [XVG] - https://bitcointalk.org/index.php?topic=1365894.0 Straks [STAK] - https://bitcointalk.org/index.php?topic=2433318.0 Shieldcoin [XSH] - https://bitcointalk.org/index.php?topic=2234453.0 RACE - https://bitcointalk.org/index.php?topic=2848766.0 KREDS - https://bitcointalk.org/index.php?topic=2886837.0 === List of Lyra2Z coinsZCoin [XZC] - https://bitcointalk.org/index.php?topic=1638450.0 GINcoin [GIN] - https://bitcointalk.org/index.php?topic=2998031.0 Gentarium [GTM] - https://bitcointalk.org/index.php?topic=4707019.0 ZCore - https://bitcointalk.org/index.php?topic=3188172.0 MANO - https://bitcointalk.org/index.php?topic=4328146.0 MCT - https://bitcointalk.org/index.php?topic=4315891.0 === List of recommended pools (with BTC payouts)=== Usage (Windows)Try running example.cmd (change -u option value to your login and -p option to your password).If it works ok, then try running best.cmd (it uses assembler kernels).If it is working, then you may want to tweak some settings, see Options section below.If you are getting errors about unsupported videocard or if you have an Intel CPU and AMD GPUs, try running example2platforms.cmd.You can also check out bestfarm.cmd for a useful script, which will name your miners according to their local IP address.Press 'q' to exit the app.=== Usage (Linux)!!! TODO: mkxminer is 64bit since version 4.0. The readme below will change once Linux bins are released !!!It is recommended to use mkxminer under Windows. But if you have to use Linux, then ./example.sh is your starting point.Command line parameters are the same for Linux and Windows.Note: mkxminer is a 32-bit application. So if you are using a 64 bit application, like Ubuntu 16.04 x64, then you needto install some some required libraries. Execute these commands in a terminal in case you're on Ubuntu x64:sudo dpkg --add-architecture i386sudo apt-get updatesudo apt-get install libc6:i386 libstdc++6:i386If you execute ./mkxminer and it just closes without printing anything, then you don't have 32 bit support (see above).Error: ./mkxminer: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directoryReason: You don't have 32bit OpenCL installed. If you added 32 bit support (like written above), you may need to reinstall AMD drivers.Error: Frontend phase failed compilation.Error: Compilation from LLVMIR binary to IL text failed!Reason: the AMD driver is not compatible with mkxminer. Try another driver. You can see AMD GPU-PRO version by executing:dpkg -l amdgpu-proFor example, amdgpu-pro-17.40-492261.tar.xz and amdgpu-pro-17.40-483984.tar.xz show this problem on RX480, but work fine on R9 390.If you have some problems - please report via PM in bitcointalk.Known issue: once you quit mkxminer, the current terminal window becomes unusable. Close terminal and open a new one.Press 'q' to exit the app. Do NOT press Ctrl+C or you'll get a zombie process.=== Options--algorithm or -a - Selected mining algorithm. Two options: lyra2rev2 or lyra2z-o or --url - URL of the stratum server (ex: stratum+tls://stak.suprnova.cc:7710)You can currently only specify one pool, no backups supported.-u or --user - Username for stratum server-p or --pass - Password for stratum server-d or --device - Select device to use, one value, range and/or comma separated (e.g. 0-2,4) default: all-I or --intensity - Intensity of GPU scanning (23 for high end cards, 20 for low end)--exitsick - Exit miner if one of GPUs becomes sick (so that you can create a script to restart app / reboot PC)--asm - Will enable ASM kernels for supported GPUs (Vega, Fiji, Ellesmere, Tonga, Hawaii, Tahiti, Oland currently)for about 10% extra speed. Note: this may crash your miner, especially on some Ellesmere cards.Recommended 16.10.3 driver or latest AMD / beta blockchain driver.--platform - Select OpenCL platform ID to use for GPU mining. Default is autodetect.--engine - GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 1050-1100,900,750-850)--fan - GPU fan percentage range - one value, range and/or comma separated list (e.g. 0-85,100,100). Fan 100% recommended for pro mining.--map - Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)--memclock - Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card--powertune - Set the GPU powertune percentage - one value for all or separate by commas for per card--reorder - Attempt to reorder GPU devices according to PCI Bus ID--vddc - Set the GPU voltage in Volts - one value for all or separate by commas for per card--auto-fan - Automatically adjust all GPU fan speeds to maintain a target temperature--auto-gpu - Automatically adjust all GPU engine clock speeds to maintain a target temperature--temp-cutoff - Temperature which a device will be automatically disabled at, one value or comma separated list--temp-overheat - Temperature which a device will be throttled at while automanaging fan and/or GPU, one value or comma separated list--temp-target - Temperature which a device should stay at while automanaging fan and/or GPU, one value or comma separated list=== Speeds Lyra2rev2 (no overclocking)Radeon Pro Duo: 84.8MHs (42.4 + 42.4)Fiji: 55MHsVega56: 53MHsRX 580: 39MHsRX 480: 36MHsR9 390: 32MHsR9 380X: 26MHsR9 280X: 26MHs=== Speeds Lyra2z (no overclocking)Vega64: 7.4MHsRX 580: 3.7MHsRX 480: 3.5MHsR9 390: 1.8MHs* Note: the actual mining speed is a bit higher as some of the hashrate is used as devfee. The above values are what you (the miner) gets.Other miners with devfee show you the total hashrate and then you have to reduce it by devfee: for example,if you have 30MHs with 5% devfee, then effectively it is 28.5MHs for you (30 * (1.0 - 0.05)).This miner shows you exactly the MHs that you earn, so devfee value is irrelevant.You do not have to use this miner. For a free open-source option, please use https://miner.nicehash.com/ or https://github.com/sgminer-dev/sgminer ============Note regarding mkxminer:- Please use beta blockchain driver. Link: https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-Crimson-ReLive-Edition-Beta-for-Blockchain-Compute-Release-Notes.aspx I use it myself on RX580 and Vega. Running absolutely rock solid.There are reports, that latest 18.x drivers don't work properly.- Do not use lyra2rev2 anymore, it is not profitable. Lyra2Z is much better.- New version will have higher mining speed and Linux support. ETA: This month (October).- There will be no more Lyra2rev2 support (does not make any sense, because of ASICs).PS: If you need any comments from me, please send PM. Unfortunately, I don't have time to constantly monitor this forum.=============== TweakingThere are pretty much only two things to tweak:1) Increase GPU frequency. Memory frequency is not important.2) Increase intensity. 23 is recommended for 4GB+ videocards on Lyra2rev2 (or 18 for Lyra2Z).=== Version historyv1.0.0: 11 November 2017 - Initial nicehash version.v1.0.1: 12 November 2017 - Added missing DLL and fixed gfx901 problem.v2.0.0: 5 December 2017 - Rewritten + tls pools supported.v2.0.1: 12 December 2017 - Added VTC pool, AMD platform autodetection.v3.0.0: 23 December 2017 - stratum+tcp pools are now supported.v3.0.1: 9 January 2018 - Fixed problem with pools not supporting extranonce, 'q' to exit, Linux port, cleaned up dlls.v3.1.0: 8 February 2018 - Better Linux compatibility and non-TLS/SSL pools supported. Fixed some pool disconnections.v3.1.0: 12 February 2018 - Added optimised Vega kernel. Combined Windows+Linux packaging.v4.0 beta: 9 September 2018- Added Lyra2z- Now 64 bit binaries only, no more 32 bit- Now only asm optimized kernels (removed --asm parameter)- Removed support for legacy Cards (prior to R9 290)- Reduced distribution size- Beta release: only windows and only lyra2z (linux and lyra2rev2 with some optimizations will be available in full release)v4.1: 27 October 2018- Linux build + Windows build- About 5% speed increase* Coming soon *- API support===MD5: 23f309f5a041ec43120dfbd0ee8162cc=== OLD versions[lyra2Z only] Version 4.0.0 BETA WindowsMD5: 6708c7c02f6d29b92bb4f17c86f8203donly] Latest version 3.1.0MD5: 546f89ef835aa5a6af74b12e016dca55[lyra2rev2 only] Previous version 3.0.1MD5: 83db821ce8de0cbd0766a69560635574Windows version 3.0.0 and later work with any stratum+tcp pools. For example: mkxminer.exe --exitsick --asm -o stratum+tcp://lyra2.easymine.online:5000 -u Vjjhnmiy2HAfWBq4n7mn7NmUPVki12unyi -p x -I 23[lyra2rev2 only] version 3.1.0MD5: 906e456c1cd8112dfe0a357f6f151f79