Created
August 11, 2017 07:16
-
-
Save louisje/8155de7d30dbc389ce827dcbeb788d50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
if test -z "$(which git)"; then | |
echo "git is missing!" | |
exit 1 | |
fi | |
if test -z "$(which cmake)"; then | |
echo "cmake is missing!" | |
exit 1 | |
fi | |
export GPU_FORCE_64BIT_PTR=0 | |
export GPU_MAX_HEAP_SIZE=100 | |
export GPU_USE_SYNC_OBJECTS=1 | |
export GPU_MAX_ALLOC_PERCENT=100 | |
export GPU_SINGLE_ALLOC_PERCENT=100 | |
if test ! -d "ethminer"; then | |
git clone "https://github.com/ethereum-mining/ethminer" | |
fi | |
cd "ethminer" | |
git pull --rebase | |
mkdir -p "build" | |
cd "build" | |
cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DHUNTER_JOBS_NUMBER=4 | |
cmake --build . | |
./ethminer/ethminer -U -S "asia1.ethermine.org:4444" -O 0x7b2ffb19e91c325537f2b50d51626a0cbae129ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment