Compiling Ravencoin sgminer branch for x16r algorithm on ethOS

So, I was asked by a friend to compile some software for him using: https://github.com/aceneun/sgminer-gm-x16r/releases

I have to say that users branch was exactly that ‘aceneun’.

In the end I thought I’d goto the source so reached out to the raven developer of this branch:
https://github.com/brian112358/sgminer-x16r

It’s a tough time compiling in EthOS because it’s all weird, and it required extra depedancies 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:

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.

Download repo:

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 with :

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

Finally run make to compile the software

make

You dont have to install it but you can like

make install

Make a proper file for our configs:

vi mylauncher.sh
[bash]
#!/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

chmod +x mylauncher.sh
./mylauncher.sh

A very simple task and as an avid proponent of ravencoin!

Compiling Ravencoin sgminer branch for x16r algorithm on ethOS

So, I was asked by a friend to compile some software for him using: https://github.com/aceneun/sgminer-gm-x16r/releases

I have to say that users branch was exactly that ‘aceneun’.

In the end I thought I’d goto the source so reached out to the raven developer of this branch:
https://github.com/brian112358/sgminer-x16r

It’s a tough time compiling in EthOS because it’s all weird, and it required extra depedancies 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:

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.

Download repo:

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 with :

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

Finally run make to compile the software

make

You dont have to install it but you can like

make install

Make a proper file for our configs:

vi mylauncher.sh
[bash]
#!/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

chmod +x mylauncher.sh
./mylauncher.sh

A very simple task and as an avid proponent of ravencoin!