Skip to content

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.

Install Dependencies

Visual Studio 2017 Community

  • 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).

CUDA 8.0

  • 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)

CMake for Win64

  • 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

Microhttpd and libuv

Compile

  • 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.

Additional CMake options

  • -DWITH_AEON=OFF Disable CryptoNight-Lite support.
  • -DWITH_HTTPD=OFF Build without built in http server and API.