Skip to content

Instantly share code, notes, and snippets.

@louisje
Created October 26, 2018 01:54
Show Gist options
  • Save louisje/8dacab51d0e25da349ee0cac421ef417 to your computer and use it in GitHub Desktop.
Save louisje/8dacab51d0e25da349ee0cac421ef417 to your computer and use it in GitHub Desktop.
#!/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