NebulousLabs / Sia-GPU-Miner

A GPU Miner for Sia
MIT License
151 stars 79 forks source link

Sia-GPU-Miner

A GPU miner designed for mining siacoins. This miner runs in a command prompt and prints your hashrate along side the number of blocks you've mined. Most cards will see greatly increased hashrates by increasing the value of 'I' (default is 16, optimal is typically 20-25).

install dependencies (ubuntu 16.04)

sudo apt-get install opencl-headers libcurl4-gnutls-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so

How to Use

1) Build the miner by running make.

2) Make sure you have a recent version of Sia installed and running.

3) Run the miner by running ./gpu-miner. It will mine blocks until killed with Ctrl-C.

Configuration

You can tweak the miner settings with five command-line arguments: -I, -C, -p, -d, and -P.

If you wanted to run the program on platform 0, device 1, with an intensity of 24, you would call ./sia-gpu-miner -d 1 -I 24

Multiple GPUs

Each instance of the miner can only point to a single GPU. To mine on multiple GPUs at the same time, you will need to run multiple instances of the miner and point each at a different gpu. Only one instance of 'siad' needs to be running, all of the miners can point to it.

It is highly recommended that you greatly increase the value of 'C' when using multiple miners. As a rule of thumb, the hashrate for each miner should be updating one time per [numGPUs] seconds. You should not mine with more than 6 cards at a time (per instance of siad).

Notes