forked from aceneun/sgminer-gm-x16r
Building on Linux
Cătălin Georgescu edited this page Apr 16, 2018
·
2 revisions
Steps:
Go here and grab the AMD APP SDK 3.0. Install it to /opt/AMDAPPSDK-3.0
.
git clone https://github.com/brian112358/avermore-miner
- change dir to the cloned repository
cd avermore-miner
- next steps are basically the same from the main README:
git submodule update --init --recursive
./autogen.sh
CFLAGS="-O2 -Wall -march=native -std=gnu99 -I/opt/AMDAPPSDK-3.0/include" ./configure <options>
If you installed the AMD APP SDK somewhere else, just modify the path in the CFLAGS
string.
make -j3 (to use 3 threads, adjust depending on your cpu)
You can either run make install
or you can run it from the build directory.
Sample script file to run the miner:
#!/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="your address"
POOL="stratum+tcp://<pool.url>:<port>"
PASSWORD="x"
XINTENSITY="512"
THREADS="2"
./sgminer -k x16r -o $POOL -u $ADDRESS -p $PASSWORD -X $XINTENSITY --gpu-threads $THREADS
Experiment with different values for --xintensity like 256, 384, etc
Save it in a file, for instance miner.sh
, make it executable (chmod +x miner.sh
) and run it: ./miner.sh