Skip to content

alephium/gpu-miner

Repository files navigation

gpu-miner

CUDA capable PoW miner for Alephium.

Please make sure that you have installed Nvidia driver for you GPU. You could verify that by running the nvidia-smi command.

Ubuntu miner from source code

  1. Build the miner by running
curl -L https://github.com/alephium/gpu-miner/raw/master/get-miner.sh | bash
  1. Start the miner
gpu-miner/run-miner.sh

You could specify the miner api with -a broker_ip and -p broker_port parameters, GPU indexes with -g 1 2.

Windows miner from source code

  1. Install Visual Studio Build Tools 2019, making sure to select C++ CMake tools for Windows during the installation.

  2. Install CUDA Toolkit (11.5 was tested and working)

  3. Install conan

  4. Build gpu-miner:

    1. Clone gpu-miner to local
    git clone https://github.com/alephium/gpu-miner.git
    1. Open a powershell window, and launch the build script:
    cd your-gpu-miner-dir
    .\build.ps1

    Executable file will be generated in your-gpu-miner-dir/bin/ directory.

  5. Start the miner in a powershell window :

.\run-miner.ps1

If you have any questions, please reach out to us on Discord.

Pre-built miner

You could also download and run the pre-built miner from Github release page. Note that your anti-virus might warn about the pre-built miner.