Skip to content

Cast XMR - high speed CryptoNight miner for RX Vega GPUs

Notifications You must be signed in to change notification settings

glph3k/cast_xmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 

Repository files navigation

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

  • Supported CryptoNight/CryptoNote PoW hash algorithms:

    • CryptoNightV8 (CNv2)
    • CryptoNightV7 (CNv1)
    • CryptoNight (Classic)
    • CryptoNight Heavy
    • CryptoNightXHV Heavy
    • CryptoNightV7 Lite
    • CryptoNightTUBE Heavy (CN Saber)
    • CryptoNight Fast
    • CryptoNightV8 Fast (CNv2 Fast)
    • CryptoNight Turtle
  • Support for following GPUs:

    • Radeon VII
    • Radeon RX Vega 64
    • Radeon RX Vega 56
    • Radeon Vega Frontier Edition
    • Radeon RX 480/RX 470/RX 560/RX 570/RX 580
  • Multiple GPU support

  • Monitor temperature and fan speed of each GPU

  • Full pool support

  • Fast Job Switch option to minimize outdated shares

  • Nicehasher support

  • Remote http access for statistics in JSON format

  • Rate Watchdog to monitor each GPU performance

  • Includes switch-radeon-gpu command line tool to restart GPUs, switch on/off HBCC, Compute Mode and Large Pages support for Radeon GPUs

Requirements

  • Windows 8/8.1/10 64 bit or
  • Ubuntu Linux 16.04 (64 bit) or later
  • For highest hash rates the Radeon Driver 18.5.1 or later has to be installed as they include profound performance and stability improvements over older drivers.

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:

  • --algo=0 for CryptoNight (Classic)
  • --algo=1 for CryptoNightV7 (CNv1)
  • --algo=2 for CryptoNight-Heavy
  • --algo=3 for CryptoNight-Lite
  • --algo=4 for CryptoNightV7-Lite
  • --algo=5 for CryptoNightTUBE-Heavy
  • --algo=6 for CryptoNightV8-Fast (CNv2-Fast)
  • --algo=7 for CryptoNightXHV-Heavy
  • --algo=8 for CryptoNight-Fast
  • --algo=9 for CryptoNight-Turtle
  • --algo=10 for CryptoNightV8 (CNv2)

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.