Sunday, April 5, 2020

CUDA Miner for Mac OS with NVIDIA GPU

Prerequisites

Mac OS X with GPU Compute 2.x or Higher NVIDIA GPU, normally with older model e.g. MacBook Pro retina 2014 or the latest with external eGPU

(1) Mac OS X 10.7 Lion, Mac OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, or OS X 10.10 Yosemite

(1.1) Download and install the CUDA toolkit for NVIDIA GPU (e.g. CUDA toolkit 9.0 for Mac OS X 10.12)
https://developer.nvidia.com/cuda-toolkit-archive

(1.2) Download CudaMiner for OS X binary from here
https://www.johnchapman.net/my-work/apps-and-software/cudaminer/


(2) Mac OS X 10.12 or above, download source and compile

(2.1) Download and install the CUDA toolkit for GPU
https://developer.nvidia.com/cuda-toolkit-archive

(2.2) Install Latest XCode (e.g. Xcode 9.2 for Mac OS X 10.12)and Command Line Tools for Mac OS and Homebrew and the recommended packages as in here
https://github.com/rooi/ccminer_macos
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Install Homebrew packages
brew install pkg-config autoconf automake curl openssl llvm cmake
brew install cliutils/apple/libomp

(2.3) Download XCode (e.g. XCode 8.3.2 for Mac OS X 10.12) and install the Command Line Tools for Xcode 8.3.2

(2.4) Download the project from https://github.com/rooi/ccminer_macos

(2.5) Setup Environment variable e.g. Mac OS 10.12 with CUDA toolkit 9.0
shell script    Select all
export PATH=/Developer/NVIDIA/CUDA-9.0/bin:$PATH export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-9.0/lib:$DYLD_LIBRARY_PATH


(2.5) Use xcode-select command switch to say Xcode 8.3.2 and compile
shell script    Select all
sudo xcode-select --switch /Applications/Xcode_8.32.app/Contents/Developer cd ~/Download unzip ccminer_macos_macos.zip cd ~/Download/ccminer_macos_macos ./build.sh make install


(2.6) Using CudaMiner
shell script    Select all
ccminer --url=stratum+tcp://yourminingpoolurl --algo=scrypt --userpass=yourworkername.user:yourworkerpassword  


No comments: