Skip to content

Instantly share code, notes, and snippets.

@zelig
Created May 18, 2015 20:52
Show Gist options
  • Save zelig/85cc18ce1e373d0ee7ab to your computer and use it in GitHub Desktop.
Save zelig/85cc18ce1e373d0ee7ab to your computer and use it in GitHub Desktop.
GPU mining on MacOS. Tried on MacBook Pro Retina with NVIDIA GeForce GT750M. Only reaches a max of 700-900 KH/s which is only 0-15% better than CPU on 8 cores
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.29_mac.pkg
sudo installer -pkg cuda_7.0.29_mac.pkg -target /
// once cpp-ethereum 0.9.23 is released on homebrew you do not need to build from source
brew update
brew tap ethereum/ethereum
brew reinstall cpp-ethereum --with-gpu-mining --devel --build-from-source
// or build from source:
// cd cpp-ethereum
// cmake -DETHASHCL=1 -DGUI=0
// make -j8
// make install
// try --opencl-device with 0, 1, 2 etc
ethminer -G -M --opencl-device 2 // to benchmark
//
ethminer -G --opencl-device 2 // to mine
// for geth mining you need an account
// rpccorsdomain is needed for ethminer to access rpc
// note that you do NOT need --mine or start mining on console
geth --rpccorsdomain localhost --verbosity 6 --pprof console 2>>/tmp/eth.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment