From bbd247a1599a9d5858e3b0f4a495736b87c86346 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 27 Dec 2017 15:26:45 -0600 Subject: Update compile_Windows.md fix minor spelling error --- doc/compile_Windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index c9a8ff7..f898867 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -22,7 +22,7 @@ ### Cuda 8.0+ (only needed to use NVIDIA GPUs) -- donwload and install [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads) +- download and install [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads) - for minimal install choose `Custom installation options` during the install and select - CUDA/Develpment - CUDA/Visual Studio Integration (ignore the warning during the install that VS2017 is not supported) -- cgit v1.1 From 05b98280e323b694db5d1fa583f19be8248df211 Mon Sep 17 00:00:00 2001 From: dam-ien <4492999+dam-ien@users.noreply.github.com> Date: Mon, 15 Jan 2018 18:21:05 -0500 Subject: Fix for compiling with Cuda 9.1 on VS 2017 version >= 15.5 Fix for #750, #626, #606, #534, without having to downgrade and do not require modification of host_config.h Require an additional component during VS2017 installation (VC++ 2017 version 15.4 v14.11 toolset) and an additional command execution before compilation. --- doc/compile_Windows.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index c9a8ff7..adf99cb 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -13,6 +13,7 @@ - during the install chose the components - `Desktop development with C++` (left side) - `VC++ 2015.3 v140 toolset for desktop` (right side) + - Since release of VS2017 15.5 (12/04/17), require `VC++ 2017 version 15.4 v14.11 toolset` (under tab `Individual Components`, section `Compilers, build tools, and runtimes`), as CUDA 9.1 is not compatible with compiler 14.12.X ### CMake for Win64 @@ -80,6 +81,8 @@ - `cd` to your unzipped source code directory - execute the following commands (NOTE: path to VS2017 can be different) ``` + # Next line is only if compiling for Cuda 9.1 and using Visual Studio 2017 >= 15.5 (released 12/04/17) + "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=14.11 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl mkdir build -- cgit v1.1 From 520c502dc2da0525ba8885223628fb8040c786b0 Mon Sep 17 00:00:00 2001 From: SeaDude Date: Tue, 16 Jan 2018 22:33:57 -0800 Subject: Simplified compile instructions for noobs There are a lot of hiccups on this step in the AEON Slack Channel. --- doc/compile_Windows.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index f898867..970c8ab 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -75,10 +75,11 @@ ## Compile -- download and unzip `xmr-stak` +- download `xmr-stak` [Source Code.zip](https://github.com/fireice-uk/xmr-stak/releases) and save to a location in your `User` folder +- extract the Source Code.zip file - open the command line terminal `cmd` -- `cd` to your unzipped source code directory -- execute the following commands (NOTE: path to VS2017 can be different) +- `cd` to the extracted source code directory +- execute the following commands (NOTE: path to Visual Studio 2017 Community can be different) ``` "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl -- cgit v1.1 From 8a3b6984cd35d64cfd22db83d13690b2e62eb5f0 Mon Sep 17 00:00:00 2001 From: SeaDude Date: Tue, 16 Jan 2018 23:22:08 -0800 Subject: Added Mercenary's suggestion --- doc/compile_Windows.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index 970c8ab..3b236be 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -75,7 +75,7 @@ ## Compile -- download `xmr-stak` [Source Code.zip](https://github.com/fireice-uk/xmr-stak/releases) and save to a location in your `User` folder +- download `xmr-stak` [Source Code.zip](https://github.com/fireice-uk/xmr-stak/releases) and save to a location in your home folder (C:\Users\USERNAME\) - extract the Source Code.zip file - open the command line terminal `cmd` - `cd` to the extracted source code directory @@ -86,6 +86,8 @@ mkdir build cd build ``` + - Sometimes Windows will `cd` to `C:\Users\USERNAME\source\build\` instead of `C:\Users\USERNAME\xmr-stak-\build`. Ensure you are in the correct `build` directory before proceeding. + - for CUDA 8* ``` cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. -- cgit v1.1 From dc429fede1bb2f85c5ea47d9a3db8cf06833f824 Mon Sep 17 00:00:00 2001 From: denis-roy Date: Sat, 20 Jan 2018 16:34:06 -0500 Subject: Fixed Minor Typo CUDA/Develpment -> CUDA/Development --- doc/compile_Windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index c9a8ff7..246a2db 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -24,7 +24,7 @@ - donwload and install [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads) - for minimal install choose `Custom installation options` during the install and select - - CUDA/Develpment + - CUDA/Development - CUDA/Visual Studio Integration (ignore the warning during the install that VS2017 is not supported) - CUDA/Runtime - Driver components -- cgit v1.1 From c7d136fe308cfb39c8fe05c6ee615f579238b2ab Mon Sep 17 00:00:00 2001 From: Andre Mueller <23385321+7022Andre@users.noreply.github.com> Date: Wed, 24 Jan 2018 15:55:14 -0800 Subject: Update compile process Added/Rewrote instructions on how to compile in Windows; Fixed some typos and syntax; Added build option section --- doc/compile_Windows.md | 88 ++++++++++++++++++++++++++------------------------ 1 file changed, 45 insertions(+), 43 deletions(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index 940e0c3..e32906c 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -4,54 +4,54 @@ ### Preparation -- open a command line `cmd` -- run `mkdir C:\xmr-stak-dep` +- Open a command line (Windows key + r) and enter `cmd` +- Execute `mkdir C:\xmr-stak-dep` -### Visual Studio 2017 Community +### Visual Studio Community 2017 -- download VS2017 Community and install from [https://www.visualstudio.com/downloads/](https://www.visualstudio.com/downloads/) -- during the install chose the components +- Download and install [Visual Studio Community 2017](https://www.visualstudio.com/downloads/) +- During install choose following components: - `Desktop development with C++` (left side) - - `VC++ 2015.3 v140 toolset for desktop` (right side) + - `VC++ 2015.3 v140 toolset for desktop` (right side - **NOT** needed for CUDA 9 or AMD GPU) - Since release of VS2017 15.5 (12/04/17), require `VC++ 2017 version 15.4 v14.11 toolset` (under tab `Individual Components`, section `Compilers, build tools, and runtimes`), as CUDA 9.1 is not compatible with compiler 14.12.X ### CMake for Win64 -- download and install the latest version from [https://cmake.org/download/](https://cmake.org/download/) -- tested version: [cmake 3.9](https://cmake.org/files/v3.9/cmake-3.9.0-rc3-win64-x64.msi) -- during the install choose the option `Add CMake to the system PATH for all users` +- Download and install latest version from https://cmake.org/download/ +- Tested version: [cmake 3.9](https://cmake.org/files/v3.9/cmake-3.9.0-rc3-win64-x64.msi) +- During install choose option: `Add CMake to the system PATH for all users` -### Cuda 8.0+ (only needed to use NVIDIA GPUs) +### Cuda 8.0+ (only needed for NVIDIA GPUs) -- download and install [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads) -- for minimal install choose `Custom installation options` during the install and select +- Download and install https://developer.nvidia.com/cuda-downloads +- For minimal install choose `Custom installation options` during the install and select - CUDA/Develpment - CUDA/Visual Studio Integration (ignore the warning during the install that VS2017 is not supported) - CUDA/Runtime - Driver components -### AMD APP SDK 3.0 (only needed to use AMD GPUs) +### AMD APP SDK 3.0 (only needed for AMD GPUs) -- download and install the latest version from [http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/](http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/) +- Download and install the latest version from http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/ ### Dependencies OpenSSL/Hwloc and Microhttpd -- for CUDA 8*: - - download the version 1 of the precompiled binary from [https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip](https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip) - - version 1 of the pre-compiled dependencies is not compatible with Visual Studio Toolset v141 -- for CUDA 9 **and/or** AMD GPUs, CPU: - - download the version 2 of the precompiled binary from [https://github.com/fireice-uk/xmr-stak-dep/releases/download/v2/xmr-stak-dep.zip](https://github.com/fireice-uk/xmr-stak-dep/releases/download/v2/xmr-stak-dep.zip) - - version 2 of the pre-compiled dependencies is not compatible with Visual Studio Toolset v140 -- unzip all to `C:\xmr-stak-dep` +- For CUDA 8*: + - Download version 1 of the precompiled binary from https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip + - Version 1 of the pre-compiled dependencies is not compatible with Visual Studio Toolset v141 +- For CUDA 9* **and/or** AMD GPUs, CPU: + - Download version 2 of the precompiled binary from https://github.com/fireice-uk/xmr-stak-dep/releases/download/v2/xmr-stak-dep.zip + - Version 2 of the pre-compiled dependencies is not compatible with Visual Studio Toolset v140 +- Extract archive to `C:\xmr-stak-dep` ### Validate the Dependency Folder -- open a command line `cmd` -- run +- Open a command line (Windows key + r) and enter `cmd` +- Execute ``` cd c:\xmr-stak-dep tree . ``` -- the result should have the same structure +- You should see something like this: ``` C:\xmr-stak-dep>tree . Folder PATH listing for volume Windows @@ -76,34 +76,36 @@ ## Compile -- download `xmr-stak` [Source Code.zip](https://github.com/fireice-uk/xmr-stak/releases) and save to a location in your home folder (C:\Users\USERNAME\) -- extract the Source Code.zip file -- open the command line terminal `cmd` -- `cd` to the extracted source code directory -- execute the following commands (NOTE: path to Visual Studio 2017 Community can be different) +- Download xmr-stak [Source Code.zip](https://github.com/fireice-uk/xmr-stak/releases) and save to a location in your home folder (C:\Users\USERNAME\) +- Extract `Source Code.zip` (e.g. to `C:\Users\USERNAME\xmr-stak-`) +- Open a command line (Windows key + r) and enter `cmd` +- Go to extracted source code directory (e.g. `cd C:\Users\USERNAME\xmr-stak-`) +- Execute the following commands (NOTE: path to Visual Studio Community 2017 can be different) ``` - # Next line is only if compiling for Cuda 9.1 and using Visual Studio 2017 >= 15.5 (released 12/04/17) + # Execute next line only if compiling for Cuda 9.1 and using Visual Studio 2017 >= 15.5 (released 12/04/17) "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=14.11 + "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" + set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl + ``` +- Sometimes Windows will change the directory to `C:\Users\USERNAME\source\` instead of `C:\Users\USERNAME\xmr-stak-\`. If that's the case execute `cd C:\Users\USERNAME\xmr-stak-` followed by: + ``` mkdir build + cd build ``` - - Sometimes Windows will `cd` to `C:\Users\USERNAME\source\build\` instead of `C:\Users\USERNAME\xmr-stak-\build`. Ensure you are in the correct `build` directory before proceeding. - - - for CUDA 8* - ``` - cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. - ``` - - for CUDA 9 **and/or** AMD GPUs, CPU - ``` - cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 .. - ``` +### CMake + +- See [build options](https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile.md#build-system) to enable or disable dependencies. +- For CUDA 8* execute: `cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 ..` +- For CUDA 9* **and/or** AMD GPUs, CPU execute: `cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..` +- Then execute ``` cmake --build . --config Release --target install + cd bin\Release + copy C:\xmr-stak-dep\openssl\bin\* . ``` - -\* Miner is also compiled for AMD GPUs (if the AMD APP SDK is installed) and CPUs. -CUDA 8 requires a downgrade to the old v140 tool chain. +- Miner is by default compiled for NVIDIA GPUs (if CUDA is installed), AMD GPUs (if the AMD APP SDK is installed) and CPUs. -- cgit v1.1 From cb9d7a43ba3ddc75a57259d9626f2f5742efb181 Mon Sep 17 00:00:00 2001 From: Andre <23385321+7022Andre@users.noreply.github.com> Date: Wed, 31 Jan 2018 09:08:57 -0800 Subject: Move section (build folder) up Moved section about Windows changing the working directory higher. --- doc/compile_Windows.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/compile_Windows.md') diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md index a512373..129596c 100644 --- a/doc/compile_Windows.md +++ b/doc/compile_Windows.md @@ -86,15 +86,16 @@ "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=14.11 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" - - set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl ``` - Sometimes Windows will change the directory to `C:\Users\USERNAME\source\` instead of `C:\Users\USERNAME\xmr-stak-\`. If that's the case execute `cd C:\Users\USERNAME\xmr-stak-` followed by: ``` mkdir build cd build + + set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl ``` + ### CMake - See [build options](https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile.md#build-system) to enable or disable dependencies. -- cgit v1.1