-
Notifications
You must be signed in to change notification settings - Fork 262
Windows Build CUDA 8
xmrig edited this page Jul 23, 2018
·
1 revision
- If you just want change file icon or description don't need to compile, you can use tools like Resource Hacker.
- download VS2017 Community and install from https://www.visualstudio.com/downloads/
- during the install chose the components
-
Desktop development with C++
(left side) -
Toolset for Visual Studio C++ 2015.3 v140...
(right side).
-
- download and install CUDA 8.0.
- for minimal install choose
Custom installation options
during the install and select- CUDA/Develpment
- CUDA/Runtime
- Driver components (Only if NVIDIA GPU installed)
- download and install the latest version from https://cmake.org/download/
- tested version: 3.12.0
- during the install choose the option
Add CMake to the system PATH for all users
- Download prebuilt dependencies https://github.com/xmrig/xmrig-deps/releases and extract it somewhere.
- Download and unzip
xmrig-nvidia.zip
- Open a command line
cmd
-
cd
to your unzipped source code directory - Execute the following commands:
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -T v140,host=x64 -DXMRIG_DEPS=c:\xmrig-deps\msvc2015\x64 -DCUDA_TOOLKIT_ROOT_DIR="c:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0"
It will create Visual Studio Solution file xmrig-nvidia.sln.
⚠️ Don't forget change Debug to Release build.
-
-DWITH_AEON=OFF
Disable CryptoNight-Lite support. -
-DWITH_HTTPD=OFF
Build without built in http server and API.