glph3k / cast_xmr

Cast XMR - high speed CryptoNight miner for RX Vega GPUs
38 stars 11 forks source link

Cast XMR - high speed CryptoNight miner for Radeon RX Vega GPUs

'Cast XMR' the high performance CryptoNight miner for CryptoNote based crypto currencies.

Cast XMR is specially optimized for the Radeon RX Vega series of GPUs, reaching hash rates of more then 2000 CryptoNight Hashes/s on an single RX Vega 56 or Vega 64.

Features

Requirements

How To

cast_xmr has a command line interface. For a minimal configuration run:

cast_xmr -S [pool server] -u [username or wallet address] --algo=[n]

The --algo option specifies which CryptoNight variant to use:

If algo is not specified or set to -1 the correct one for mining Monero will be selected.

To select which GPU to use the -G switch, e.g. for using the 2nd card use:

cast_xmr -S [pool server] -u [username or wallet address] -G 1

To select multiple GPU to use the -G switch and list comma separated the GPUs which should be used, e.g. for using the 1st and 3rd card use:

cast_xmr -S [pool server] -u [username or wallet address] -G 0,2

In case you have multiple OpenCL implementation installed or mixed GPUs (Nvidia, Intel, AMD), the correct OpenCL implemenation can be selected with the "--opencl" switch:

cast_xmr -S [pool server] -u [username or wallet address] --opencl 1 -G 0

For a complete list of configuration options run:

cast_xmr --help

Optimization Options

--intensity

With the --intensity the memory allocation of the card can be optimized. If not specified an intensity will be selected which should give under most circumstances a stable hash rate. Depending on many factors (no monitor attached to card, HBCC turned off) the intensity can be increased to reach higher hash rates.

Intensity can be set in the range from 0 to 10 (on some GPUs upto 12). It can be specified for each GPU separately by separating the values by comma. To set GPU0 to intensity 10, GPU1 to default intensity (-1) and GPU2 to intensity 7 following can be specified:

cast_xmr -G 0,1,2 --intensity=10,-1,7 (... rest of configuration ...)

Note: If the intensity is set to high the hash rate can decrease, so higher is not always better. Also the stability can decrease with higher intensity, observed as a sharp drop of the hash rate after a few minutes running.

--fastjobswitch

As the processing is done in a large batch in parallel a processing round trip can take a few seconds. In cases where the pool sends a new job the processing time until the batch ends is lost and will generate 'Outdated Shares'. To prevent this add the --fastjobswitch to immediately switch to the new job. The displayed hash rate can fluctuate more then without the option so enable after finding your desired intensity and settings. Depending on the rate of job changes the net hash rate can increase up to 10% as nearly no 'Outdated Shares' will be produced anymore.

--ratewatchdog

Add the --ratewatchdog option to let Cast XMR monitor the hash rate of the GPU, if a sustained drop in hashrate is detected the effected GPU will be restarted.