Setting up ethminer in Sierra/High Sierra for nVidia.

Why?

Why not?

In mining related subs, even though they are great communities, it seems questions about mining in OSX are met with, "Just use Windows or Linux... that's it."

This is for anyone who wants to mess with a single card rig that isn't designed for mining and who may just be OSX only. With stock clocks and stock voltage, it hashes just as well as it does on Windows and Linux.

Prerequisites:

The latest Xcode (and command line tools.) (Can be found in the app store for free)

Command Line Tools for Xcode 8.3.2 (Can be found here)

(if you're on High Sierra) CUDA Toolkit 9.1

(if you're on Sierra) CUDA Toolkit 9.0

Homebrew.


Download the above linked files.


Installing Homebrew

Open terminal

in terminal type


/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

press enter

Enter password when prompted.

Let the install finish.

Close Terminal Window


Install CUDA toolkit for your OSX version from the link above. You don't have to install the samples.

Now to install cmake

open terminal

in terminal type


$ brew install cmake

press enter

This installs the compiler


Preparing to compile cpp-ethereum

Now we have to install and switch to an older version of Command Line Tools to compile cpp-etherminer

Install Command Line Tools for Xcode 8.3.2 (link is above)

Once it's finished installing, in terminal type


sudo xcode-select --switch /Library/Developer/CommandLineTools

press enter

This switches to 8.3.2

Close and reopen terminal to get rid of that sudo.


Compiling cpp-ethereum


git clone https://github.com/Genoil/cpp-ethereum

press enter

This will download cpp ethereum source to your home directory.

from your home directory in terminal type or copy paste the commands below hitting enter after each line.


cd cpp-ethereum mkdir build cd build cmake ..

NOTE: for the next line, the -DCOMPUTE option varies depending on your hardware. If you're using a Pascal card use 61 if you're using a 9 series, use 52.


cmake -DETHASHCUDA=on -DCOMPUTE=61 --build . cmake --build . cd ethminer ./ethminer -U --list-devices

You should see your nVidia card listed.

If so you're all good.

Now you can mine Ethereum


./ethminer -U -S url.of.pool.com:portnumber -O <your_wallet_or_login>
submitted by /u/Monewbo
[link] [comments]