Skip to content
Vulkan SPIR-V miner for Cryptonight
Branch: master
Clone or download
christophe 8GB support
Latest commit 732a242 Mar 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
img new Feb 8, 2019
redist Moved the native Windows APIs Feb 26, 2019
spirv 8GB support Mar 17, 2019
src 8GB support Mar 17, 2019
CMakeLists.txt Remove avx when compiling without aes-ni Mar 8, 2019
LICENSE Initial commit Jan 23, 2019


This program is a Vulkan SPIR-V based miner for the Cryptonight familly:


This miner is based on Vulkan and SPIR-V technology (not OpenCL):

What's Vulkan:

Vulkan is a new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

This program should work on any Vulkan 1.0 compatible device: AMD, Intel, Nvidia.

Download and run

You can get binaries in therelease section here: Releases

Extract the zip file, and run miner.exe / miner.

The binary glslangValidator.exe/glslangValidator is from the Vulkan SDK and is for CryptonightR to a compile new SPIR-V kernel at each new block.

New in 0.2: Monitoring, hashrate seen by pool improved, turtlecoin and bittorium support, wownero v11 and v12 blocks.

Drivers installation

On Windows, Vulkan should be provided with recent drivers for AMD and NVIDIA. On AMD only use 2018+ Adrenalin drivers. Crimson drivers are too old.
If unsure chech or
If you run intro trouble, please download the Vulkan SDK at and run the vulkaninfo.exe tool to check your drivers are properly installed.

On Linux, install amdgpu/amdgpu-pro as usual or ROCM and either install the vulkan driver (apt-get install libvulkan1) or install the SDK
It is recommended to check your configuration with vulkaninfo that you can get with apt-get install vulkan-utils.
As for Windows, check the installation with vulkaninfo.
If it does not work, check that the ICD is properly configured. In /etc/vulkan/icd.d/ there should be a file with something like:

"file_format_version" : "1.0.0",
"ICD" : {
"library_path" : "path_to/",
"api_version" : "1.1.something"

Windows TDR

When mining under Windows and using optimized settings, the driver might reset and the miner will stop with the error "Device Lost". This is caused by the Timeout Detection and Recovery feature triggered when a kernel works for more than 2 seconds.
Either change the TdrDelay key in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\GraphicsDrivers or create a TdrLevel entry with value 0 (TdrLevelOff).
The file TdrLevel.reg will change the Windows registry to proper settings.


When entering the miner, a setup menu will be shown if there are no config.json file there.

  • on wallet_address you can add a worker/farm id by adding .your_farm after the address
  • The cu parameter is the number of compute units (AMD terminology) / Stream Multiprocessors(Nvidia).
  • The factor is how many threads are sent to each CU.
  • The worksize is the number of threads per CU at a given time.
  • Used memory is given by:
    Number of CU x Factor x 2 Mb (1Mb for Cryptonight light)
  • So for example a 56 CU with a factor 64 on Monero will use:
    56 x 64 x 2 = 7168 Mb of Video RAM.
  • debug_network allows to print the network exchanges between the miner and the pool
  • console_listen_port: 0 to disable JSON/Graphic or port number
  • console_refresh_rate: 30s will give a hashrate window of 12 hours in the graphs.


cmake is required to perform the build. Set environment variable VULKAN_SDK for custom vulkan libraries or when cross building for Windows.

git clone
cd VulkanXMRMiner
mkdir build
cd build
For Windows:
cmake -DWIN32=1 ..
For Linux
cmake ..
use cmake -DSOFT_AES=1 .. for non aes-ni processors

Extract or vulkanXMRMiner.tgz and start the miner.


Monitoring can be accessed through localhost:"the port in console_listen_port configuration file".

For monitoring in GPU farms, there is also a json url http://host:port/status.json that returns a json text reporting the health of the GPU cards:


on CN V2 (Variant 2)

Vega56 1500/1075 : 1800 H/s on Windows 10 (200 W)
Vega56 1500/945  : 1625 H/s on Linux Rocm 2.0 (200 W)
Vega56 1200/800  : 1460 H/s on Linux Rocm 2.0 (100 W)
R9 Fury 1050/500 : 835 H/s on Windows & Linux
RX560 1000/1850  : 410 H/s on Linux amdgpu-pro (25 W)
RX550 1000/1800  : 330 H/s on Linux amdgpu-pro (16 W)

on CN/R (CryptonightR - Variant 4)

Vega56 1500/1075 : 1800 H/s on Windows 10

on CN Light V7 (Aeon)

Vega56 1500/1075 : 3970 H/s on Windows 10

on TurtleCoin

Vega56 1500/1075 : 14 070 H/s on Windows 10

Dev fee

Building and maintaining a miner programm is a significant effort 😛. Miner will mine on fee pool one minute every one hour and 40 minutes on average. (1% of the time).

You are welcomed to make a donation:

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.