From d01bab0cd73181353cbc8ae61ec5712b06fcb775 Mon Sep 17 00:00:00 2001 From: Brian Recchia Date: Tue, 2 Jan 2018 16:09:40 -0500 Subject: Update minethd.cpp Changed capitalization of "macOS" Squashed the commit --- doc/compile_macOS.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/compile_macOS.md (limited to 'doc/compile_macOS.md') diff --git a/doc/compile_macOS.md b/doc/compile_macOS.md new file mode 100644 index 0000000..6eb66b3 --- /dev/null +++ b/doc/compile_macOS.md @@ -0,0 +1,31 @@ +# Compile **xmr-stak** for macOS + +## Dependencies + +Assuming you already have [Homebrew](https://brew.sh) installed, the installation of dependencies is pretty straightforward and will generate the `xmr-stak` binary in the `bin/` directory. + +### For NVIDIA GPUs + +```shell +brew tap caskroom/drivers +brew cask install nvidia-cuda +brew install hwloc libmicrohttpd gcc openssl cmake +cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOpenCL_ENABLE=OFF +make install +``` + +[All available CMake options](compile.md#nvidia-build-options) + +### For AMD GPUs + +> 🖐 We need help with AMD GPU compilation instructions. Please submit a PR if you managed to install [AMD APP SDK](http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/) and to compile `xmr-stak` on macOS. + +### For CPU-only mining + +```shell +brew install hwloc libmicrohttpd gcc openssl cmake +cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF +make install +``` + +[All available CMake options](compile.md#cpu-build-options) -- cgit v1.1 From 91a2dccb4f63ceea149cc74d36fea5a19681304d Mon Sep 17 00:00:00 2001 From: Michael Hohl Date: Wed, 10 Jan 2018 20:31:15 +0100 Subject: AMD compile instructions for macOS (#811) * compile howto on amd mac tested on the latest 15" MacBook Pro * Add a note about OpenCL/Xcode --- doc/compile_macOS.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/compile_macOS.md') diff --git a/doc/compile_macOS.md b/doc/compile_macOS.md index 6eb66b3..46f1d5b 100644 --- a/doc/compile_macOS.md +++ b/doc/compile_macOS.md @@ -18,7 +18,13 @@ make install ### For AMD GPUs -> 🖐 We need help with AMD GPU compilation instructions. Please submit a PR if you managed to install [AMD APP SDK](http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/) and to compile `xmr-stak` on macOS. +OpenCL is bundled with Xcode, so no other depedency then the basic ones needed. Just enable OpenCL via the `-DOpenCL_ENABLE=ON` CMake option. + +```shell +brew install hwloc libmicrohttpd gcc openssl cmake +cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON +make install +``` ### For CPU-only mining -- cgit v1.1