I have an iMac with a R9 M395 2048 MB for its GPU. I know mac normally has nvidia GPUs nowadays but somehow this one had a mac AMD gpu.

Is there someway I can compile a linux or windows based AMD GPU miner to run on my mac?

1 Answer 1


Try the following:

brew install openssl libmicrohttpd
git clone -b dev https://github.com/fireice-uk/xmr-stak-amd
cd xmr-stak-amd
mkdir build && cd build
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include/ ..

It may be necessary to insert the following line in CMakeLists.txt:


To run the executable:

cp bin/xmr-stak-amd ..
cd ..
./xmr-stak-amd config.txt

Note that the config.txt file and the opencl folder should be on the same location as the executable xmr-stak-amd.

You'd need to tweak the config.txt file to figure out the best setting for your GPU. To get you started, I've posted below the worst performing setting that should work on any GPU:


Relevant post on Reddit:


  • Thank you. These instructions did make it work, unfortunately I'm sure there's a bunch of things that I need to tune(ex: thread affinity doesn't matter on mac, at least thats what the xmr-stak-cpu i compiled says when I run that one). I'll have to play with the config file Commented Aug 17, 2017 at 20:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.