So, I was asked by a friend to compile some software for him using: https://github.com/aceneun/sgminer-gm-x16r/releases.
A lot of people use Ethos, like me, and were a bit upset that x16r wasn’t readily available a few weeks back, so I set about compiling it by hand, but that wasn’t easy, or straightforward for me, so here I will share my experience.
Please note you will need to download and install:
With RX570 RX580 4-8GB RAM expect to get over 5MH/s or more mining RVNcoin.
In the end I thought I’d go to the source and reached out to the raven developer of this branch:
It’s a tough time compiling in EthOS because it’s all a bit weird and isn’t really designed for modification or compiling software,though I am breaking all the rules today, and doing it with flamboyant style – there is something that can be beneficial to understanding this process as it applies to nearly every single Linux miner that isn’t readily or easily available on nicehash, etc, and in my case sgminer required extra dependencies, so do an apt-cache search for the extra dev libs, namely:
sudo apt-get install ocl-icd-opencl-dev
it has a lot of dependancies and in ethos, install that and you should get most of the rest:
sudo apt-get-ubuntu install ocl-icd-opencl-dev
Upgrading all those packages seems not to break anything in my EthOS anyway. Now on to compiling brians branch of sgminer for the X16r algorithm. You’ll probably need something similar to this if your on an ubuntu / debian or pretty much any other Linux OS, though the package names may be different.
If you have issues compiling brians Sgminer, jump onto #mining on the RVN discord channel, brianmct is there, the writer of this mining app.
git clone https://github.com/brian112358/sgminer-x16r
Prepare for compilation && checkout the dev branch && run make prepare
cd sgminer-x16r git checkout dev git submodule update --init --recursive ./autogen.sh
Then finally, we finish the configuration before compiling with this :
CFLAGS="-Os -Wall -march=native -I/opt/AMDAPPSDK-3.0/include" LDFLAGS="-L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure --disable-git-version --disable-adl --prefix=/opt/sgminer-5.5.5
NB: NOTE that the amdgpu-pro sdk library is required as specified with -I /opt/AMDAPPSDK-3.0/include and /opt/amdgpu-pro/lib/x86_86-linux-gnu , the flags may be different for you depending on wh ere you install the AMD SDK to. For Windows users, you can move onto my other article running SG miner on windows for mining ravencoin.
Finally run make to compile the software
You dont have to install it but you can like
Make a proper file for our configs:
#Edit the launcher script file for the miner vi mylauncher.sh
#!/bin/bash export GPU_FORCE_64BIT_PTR=1 export GPU_MAX_HEAP_SIZE=100 export GPU_USE_SYNC_OBJECTS=1 export GPU_MAX_ALLOC_PERCENT=100 export GPU_SINGLE_ALLOC_PERCENT=100 ADDRESS="RBFthisiswhereyourravencoinaddressgoes" POOL="stratum+tcp://miningpanda.site:3666" PASSWORD="x" INTENSITY="19" ./sgminer -k x16r -o $POOL -u $ADDRESS -p $PASSWORD -I $INTENSITY
For Windows we would use sgminer.exe instead of ./sgminer and setx command instead of ‘export’, and the file does not need #!/bin/bash either, also the file must be called .bat for Windows systems. For more details on Windows ravencoin mining we cover that in this article here.
chmod +x mylauncher.sh ./mylauncher.sh
A very simple task and as an avid proponent of Ravencoin!
Also, if you like to live on the cutting edge, and don’t mind paying dev fee’s, checkout brianmct’s avermore fork, which is potentially as muchg as 35% more efficient. I’ve been using it recently and have found it is very good aswell. Here’s a preview of the settings I use for avermore to achieve over 7MH/s with the AMD RX570 and RX580 polaris chips.
RX 580 x 5gpu running an average of 28-33MH/s
These are the clock settings I am using, about 1400-1411 MHZ core frequecy with a memory frequency of 1500mhz, and a power target of -20%. I find has given the best powerwatts to megahash raven coins ratio. Ultimately its about efficiency of the power you use, as much as the number of coins you mine. The delta ratio of these two is your profitability, and this about wraps up our brief Linux compilation tutorial for sgminer on ethos.
Appreciate the screenshot above is windows, so you might be running what I’m using on ethOS boxes aswell?
# OVERCLOCK SAPHIRE RX 570/RX580 @ ~-144mv, Memory 2039mhz, GPU: 1240mhz # ------------------------------------------------------ cor 113-D00034-S07 1240 mem 113-D00034-S07 2039 fan 113-D00034-S07 60 pwr 113-D00034-S07 3 vlt 113-D00034-S07 920 # ------------------------------------------------------
To be honest though you will probably be all right running your cards as stock, many people say they also get best clocks when not running modified eth bios mod’s as well. So no need to add these settings to your /home/ethos/local.cfg or /home/ethos/remote.cfg url in EthOS. Setting up sgminer on windows is really really easy, however a guide for this is coming soon here.