forked from fireice-uk/xmr-stak
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14e920d
commit 4622fe0
Showing
43 changed files
with
1,224 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Latest version of ubuntu | ||
FROM nvidia/cuda:9.0-base | ||
|
||
# Default git repository | ||
ENV GIT_REPOSITORY https://github.com/fireice-uk/xmr-stak.git | ||
ENV XMRSTAK_CMAKE_FLAGS -DXMR-STAK_COMPILE=generic -DCUDA_ENABLE=ON -DOpenCL_ENABLE=OFF | ||
|
||
# Innstall packages | ||
RUN apt-get update \ | ||
&& set -x \ | ||
&& apt-get install -qq --no-install-recommends -y ca-certificates cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \ | ||
&& git clone $GIT_REPOSITORY \ | ||
&& cd /xmr-stak \ | ||
&& cmake ${XMRSTAK_CMAKE_FLAGS} . \ | ||
&& make \ | ||
&& cd - \ | ||
&& mv /xmr-stak/bin/* /usr/local/bin/ \ | ||
&& rm -rf /xmr-stak \ | ||
&& apt-get purge -y -qq cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \ | ||
&& apt-get clean -qq | ||
|
||
VOLUME /mnt | ||
|
||
WORKDIR /mnt | ||
|
||
ENTRYPOINT ["/usr/local/bin/xmr-stak"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.