Ubuntu Build

xmrig edited this page Feb 28, 2018 · 7 revisions

Ubuntu 17.04 Zesty Zapus

CUDA 8

sudo apt-get install git build-essential cmake libuv1-dev nvidia-cuda-dev nvidia-cuda-toolkit gcc-5 g++-5 libmicrohttpd-dev
git clone https://github.com/xmrig/xmrig-nvidia.git
cd xmrig-nvidia
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
make

CUDA 9

Follow instructions on https://developer.nvidia.com/cuda-downloads to install CUDA.

After:

sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
git clone https://github.com/xmrig/xmrig-nvidia.git
cd xmrig-nvidia
mkdir build
cd build
cmake ..
make

Ubuntu 16.04 Xenial Xerus

sudo apt-get install git build-essential cmake libuv1-dev nvidia-cuda-dev nvidia-cuda-toolkit libmicrohttpd-dev
git clone https://github.com/xmrig/xmrig-nvidia.git
cd xmrig-nvidia
mkdir build
cd build
cmake .. -DCUDA_ARCH="20;30;50"
make

Please note CUDA 9 not supported Fermi GPUs and CUDA 7.5 not supported Pascal GPUs.

  • -DWITH_AEON=OFF Disable CryptoNight-Lite support.
  • -DWITH_HTTPD=OFF Build without built in http server and API.
  • -DUV_LIBRARY=/usr/lib/x86_64-linux-gnu/libuv.a Use static libuv version.
  • -DCUDA_ARCH="20;30;50;60" Set GPU architecture (semicolon separated list).
  • -DCUDA_TOOLKIT_ROOT_DIR= Path to CUDA.
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.