Updated on November 30th, 2018 to version 1.6.6

Here is ‘Cast XMR’ the high performance CryptoNight miner for CryptoNote based crypto currencies like Monero (XMR), Electroneum (ETN), Bytecoin (BCN) and many more.

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 GPU.

cast xmr

Hash faster and try it for yourself:

Cast XMR 1.6.6 for Windows (64 bit)
Cast XMR 1.6.6 for Ubuntu (16.04/18.04)

Features

GPU CryptoNightV7
Hashes/s*
CryptoNightV8
Hashes/s*
CryptoNight-Heavy
Hashes/s*
CryptoNight-Light
Hashes/s*
* 10 min average, Adrenalin Driver 18.5.1
** 10 min average, Adrenalin Driver 18.11.2
RX Vega 64
1025 MemClk
--intensity=10
1950 1850 1635 4090
RX Vega 56
945 MemClk
1960 1825 1550 4260
Vega Frontier Edition
1025 MemClk
--intensity=11
2090 1930 2120 4260
RX 590 8GB**
2250 MemClk
880 880 965 1790
RX 480/580 8GB
2250 MemClk
810 800 890 1640
RX 470/570 8GB
2250 MemClk
815 795 885 1640
  • Multiple GPU support
  • Monitor temperature and fan speed of each GPU
  • Full pool support
  • Nicehasher support
  • Fast Job Switch option to minimize outdated shares
  • 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
  • only 1% dev fee

Requirements

  • Windows 8/8.1/10 64 bit or Ubuntu 16.04/18.04
  • AMD Radeon RX Vega 56/64 GPU
  • or AMD Radeon Vega Frontier Edition GPU
  • or AMD Radeon RX 480/RX 580/RX 590 GPU with at least 4GB RAM
  • or AMD Radeon RX 470/RX 570 GPU with at least 4GB RAM
  • or AMD Radeon RX 560 GPU with at least 4GB RAM
  • For about 30% higher hash rates the Radeon Driver 18.5.1 or later has to be installed

How To

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

cast_xmr-vega -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 CryptoNightXTL
  • --algo=7 for CryptoNightXHV-Heavy
  • --algo=8 for CryptoNight-Fast
  • --algo=9 for CryptoNightFEST
  • --algo=10 for CryptoNightV8 (CNv2)
  • --algo=11 for CryptoNight-SuperFast

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-vega -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-vega -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-vega -S [pool server] -u [username or wallet address] --opencl 1 -G 0

For a complete list of configuration options run:

cast_xmr-vega --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-vega -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.

Change History

Cast XMR Version 1.6.6 (2018/11/30)

  • support for RX 590 GPUs added
  • fixes for detecting Compute Mode on Polaris based GPUs
  • support for CryptoNight-SuperFast (--algo=11) for mining Free Haven Protocol (XFH)
  • updated switch-radeon-gpu to version 1.2.0, which includes bugfixes for newer versions of the AMD Radeon drivers

Cast XMR Version 1.6.0 (2018/11/7)

  • Vega 56/64: 0.5 to 1% performance improvement on CryptoNightV8
  • Vega 56/64: 2 to 3% speed improvement on CryptoNight-Heavy variants (Loki, BitTube, Haven)
  • updated switch-radeon-gpu to version 1.0.5
  • support for RX 560 GPUs added

Cast XMR Version 1.5.0 (2018/9/27)

  • Support for the Monero V8 Network Upgrade which introduces a new CryptoNight variant CryptoNightV8 aka CNv2. The Monero V8 update is scheduled for 18th October. In case you are mining Monero make sure to update Cast XMR before that date. Also make sure that the algo for Monero is not explicitly set to CryptoNightV7 but set to auto detect with --algo=-1 to automatically switch from CryptoNightV7 to CryptoNightV8 when the upgrade is happening. Please also note that the CryptoNight V8 algo has added complexity which decreases the hashrate up to 7% for Vega GPUs.

Cast XMR Version 1.4.0 (2018/8/27)

  • 3% performance improvement for CryptoNightTUBE-Heavy when mining BitTube (TUBE)
  • Support for Festival Coin (FEST) upcoming update which introduces a new CryptoNight variant: CryptoNightFEST. Use --algo=9 to continue mining Festival Coin after the network update happened
  • Subtle performance improvements
  • Tested with Radeon Adrenalin Driver 18.5.1

Cast XMR Version 1.3.0 (2018/6/29)

  • Performance improvement for job switches with multiple GPUs
  • Support for BitTube (TUBE) V4 Pow Update which introduces the new algo CryptoNightTUBE-Heavy aka CN Saber. Stay on --algo=5 to switch automatically from CryptoNightIPBC-Lite to CryptoNightTUBE-Heavy when the update is happening (approx. 2nd July). Please note that the hash rate will drop as it is a switch from a Lite to a Heavy variant.

Cast XMR Version 1.2.5 (2018/6/19)

  • Support for CryptoNight-Fast introduced with the Masari (MSR) update. Set --algo=8 to mine Masari (MSR). CryptoNight-Fast will produce higher hash rates than classic CryptoNight, typical hash rates are:
    • Vega64, 1025 Mhz MemClock: 3630 Hashes/s
    • Vega56, 945 Mhz MemClock: 3700 Hashes/s
    • VegaFE, 1025 Mhz MemClock: 3900 Hashes/s
    • RX 470/570, 2250 Mhz MemClock: 1550 Hashes/s

Cast XMR Version 1.2.0 (2018/6/12)

  • Fix for “unauthenticated shares” pool error
  • Support for the upcoming Haven (XHV) V3 update. In case you are mining Haven set --algo=7 now. Cast will then automatically switch to CryptoNightXHV-Heavy when the network update is happening.

Cast XMR Version 1.1.5 (2018/6/7)

  • Fix for mixed up device order
  • Support for Stellite (XTL) V4 Update. Add --algo=6 in case you are mining Stellite. It will automatically switch to CryptoNightXTL when the network update is happening.
  • Stability fixes

Cast XMR Version 1.1.0 (2018/6/1)

  • All new --intensity option to specify the memory allocation in the range of 0 to 10 (up to 12 for Vega Frontier Edition). The default setting will correspond with the settings of version 1.0 and are displayed at startup.
  • Vega Frontier ‘Large Pages’ support added, upto 30% higher hash rates for CryptoNight-Heavy, 5% increase for CryptoNight
  • Includes the switch-radeon-gpu command line tool to restart GPUs, switch on/off HBCC, Compute Mode and Large Pages
  • Nicehash supports now up to 24 GPUs (previous version was limited to 8)
  • --maxmem option is deprecated, will now be mapped to an corresponding intensity setting
  • --forcecompute is deprecated, ‘Compute Mode’ of Polaris GPUs will be automatically detected. To overwrite use the --intensity option
  • Default mining algo changed to CryptoNightV7, to still mine CryptoNight Classic add --algo=0
  • Tested with Radeon Adrenalin Driver 18.4.1

Cast XMR Version 1.0.0 (2018/4/24)

The history of Cast XMR Version 1.0.0 and earlier versions can be found here.

Cast XMR is now available for Ubuntu Linux.

Updated on November 30th, 2018 to version 1.6.6

Requirements

  • Ubuntu 16.04 or 18.04
  • AMD Radeon RX Vega 56/64/FE GPU or
  • AMD Radeon RX 470/RX 480/RX 560/RX 570/RX 580/RX 590 GPU
  • AMD GPU Pro Driver version 18.30 (or later) with installed OpenCL support
Download Cast XMR 1.6.6 for Ubuntu

How to mine CryptoNight on Ubuntu Linux with RX Vega 56/64 GPUs

Performance under Linux

GPU CryptoNightV7
Hashes/s*
CryptoNightV8
Hashes/s*
* 10 min average, AMD GPU Pro 18.30 driver
RX Vega 64
Headless, default settings
1770 1670
RX Vega 64
Headless, intensity 10, 1025 MemClk
1900 1760
RX Vega 64
Headless, 1025 MemClk, 180W limit
1850
RX Vega 56
Headless, default settings
1710 1600
RX Vega 56
Headless, 945 MemClk
1950 1810
RX Vega 56
Headless, 945 MemClk, 120W limit
1850

Install the AMD GPU Pro Driver

Make sure all previous AMD drivers are uninstalled. To do so check if there is an amdgpu-uninstall or amdgpu-pro-uninstall command available to run. If yes, run it if you are not sure if the correct drivers are already installed.

Get the latest driver (at least 18.30) for your distro and installed it with following options, depending if you are using Vega or Polaris based GPUs, for Vegas it is:

./amdgpu-pro-install -y --opencl=pal

For Polaris based GPUs (RX 470 to RX 580) the ‘legacy’ OpenCL stack has to be installed instead:

./amdgpu-pro-install -y --opencl=legacy

An unsolved problem seems to be that one can not use Vega and Polaris GPUs at the same time under Linux, as either ‘pal’ or ‘legacy’ OpenCL stack can be enabled.

In case you don’t need OpenGL or an accelerated desktop add the –headless option, like:

./amdgpu-pro-install -y --opencl=pal --headless

Headless?

The headless mode is that the GPU is running dedicated for mining or compute jobs. No other work like OpenGL, Mesa or Vulkan is done on the GPU. Headless mode can be achieved by:

  • Operating the machine through SSH (without any user logged into the desktop)

  • Operating the machine in console mode while no user is logged into the desktop (Ctrl-Alt-F1)

  • Not running a desktop on the GPU by running it as a secondary GPU

  • Installing the AMD Pro driver with the headless option

The headless mode achieves higher and more stable hash rates and allows higher intensity settings.

Startup Cast XMR

There is a example shell script run.sh included for an easy configuration, just edit it and change to your prefered pool -S, your coin address -u, specify the needed algo with --algo and select with the -G switch which GPUs Cast XMR should mine. E.g. to mine on the first 4 GPUs use -G 0,1,2,3.

For a complete list of configuration options run:

cast_xmr-vega --help

For an further documentation of Cast XMR command line options have a look here.

Enabling Overclocking and Low Level Control of AMD RX Vega GPUs under Linux

With AMD GPU driver 18.30 there is an documented Linux interface to access the low level configuration of AMD GPUs like clock speed, fan control and power limits. The offical documentation of the Linux DRM AMD GPU driver can be found here.

To enable overclocking and modification of the settings a kernel boot parameter has to be set. The easiest way to do this is to add the parameter amdgpu.ppfeaturemask=0xffffffff to default GRUB configuration, to do so:

sudo nano /etc/default/grub

change the following line to include the amdgpu.ppfeaturemask parameter.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.ppfeaturemask=0xffffffff"

after saving the changed file, run

sudo update-grub

to update the grub configuration.

A reboot is necessary to activate the kernel parameter.

GPU to card mapping

For all GPU low level settings the card number is needed to address the device.

Note: the cards are ordered by their PCI slot order, which does not necessarily match the OpenCL GPU device order!

Therefore on startup Cast XMR prints the determined card number for each GPU:

cast xmr ubuntu card number

Use the number stated in (card[number]) for each GPU as CARD_NUMBER for all following operations.

For example to output the current GPU state use:

sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info

Replace the 0 with the corresponding CARD_NUMBER of the GPU.

Note: All following operations can crash your computer and potential damage your hardware if used improper. Use carefully and on your own risk!

Fan control for proper cooling

Before overclocking the cooling has to be monitored and should not exceed a certain temperature. For Vega GPUs if the temperature of the GPU reaches more then 75° the GPU will throttle substantial, if the temperature of a GPU exceeds 85° the computer will do a hard reset.

Therefore a temperature below 70° should be maintained.

Unfortunately there is no target temperature control like on AMD Wattman settings for Windows. For the current driver version (18.30) the target temperature when in auto fan mode seems to be set fixed to 75°! (Which is in IMHO to high)

For overclocking the fan can only be set to a fix speed. The fan speed should be high enough that also in changing temperature condition stays below the desired target temperature, so add a little headroom.

Cast XMR includes a script to set the fan speed:

./set_amd_gpu_fan.sh CARD_NUMBER FAN_SPEED

FAN_SPEED can be set in rage 0 to 255.

Warning: a good starting point is 180. It can get quite loud. Don’t set it below 50 to prevent sudden heat death!

Overclocking

For CryptoNight mining the memory clock is the bottle neck and increasing it will result in instant higher hash values. CPU clock can be kept at moderate values. Cast XMR includes a simple script to do so, for Vega based GPUs it is:

./set_vega_mem_clock.sh CARD_NUMBER MEM_CLOCK VDDC

for Polaris basd GPUs it is:

./set_polaris_mem_clock.sh CARD_NUMBER MEM_CLOCK VDDC

It sets the memory clock and voltage and pins the memory clock to the maximum setting by disabling dynamic memory clock switching.

MEM_CLOCK is in MHz in the range 167 - 1500.

VDDC is the corresponing memory voltage in mV in the range 800 - 1200. A safe value is 950, higher clocks may run stable with a higher VDCC setting.

Warning: a wrong setting of VDDC can result in an instant crash
Warning: to high clock settings can result in an instant crash

Lowering Power Consumption

There is a simple way to limit power consumption by setting the power limit control.

A lower power limit also reduces the produced heat and can allow to lower the needed fan speed.

Default the power limit is set to maximum, so only lowering the power limit is possible.

./set_amd_gpu_power_limit.sh CARD_NUMBER POWER_LIMIT

The POWER_LIMIT is set in Watts. The range for the power limit is 1 to 220 Watts for Vega 64 and 1 to 165 Watts for Vega 56.

Find your own trade off of power consumption, fan loudness and hash rate.

Reseting to default settings

To reset the memory clock and fan speed to the default settings following script can be executed:

./reset_amd_gpu_to_defaults.sh CARD_NUMBER

Updated on August 27th, 2018 to version 1.4.0

This version is outdated, please check the latest version here

Here is ‘Cast XMR’ the high performance CryptoNight miner for CryptoNote based crypto currencies like Monero (XMR), Electroneum (ETN), Bytecoin (BCN) and many more.

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 GPU.

cast xmr

Hash faster and try it for yourself:

Cast XMR 1.4.0 for Windows (64 bit)

Features

GPU CryptoNight
Hashes/s*
CryptoNight-Heavy
Hashes/s
CryptoNight-Light
Hashes/s
* 10 min average, Adrenalin Driver 18.4.1
RX Vega 64
1025 MemClk
1950 1590 4090
RX Vega 56
945 MemClk
1990 1475 4260
Vega Frontier Edition
1025 MemClk
2090 2110 4260
RX 480/580 8GB
2250 MemClk
810 890 1640
RX 470/570 8GB
2250 MemClk
815 885 1640
  • Multiple GPU support
  • Monitor temperature and fan speed of each GPU
  • Full pool support
  • Nicehasher support
  • Fast Job Switch option to minimize outdated shares
  • 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
  • only 1.5% dev fee

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:

  • --algo=0 for CryptoNight (Classic)
  • --algo=1 for CryptoNightV7
  • --algo=2 for CryptoNight-Heavy
  • --algo=3 for CryptoNight-Lite
  • --algo=4 for CryptoNightV7-Lite
  • --algo=5 for CryptoNightTUBE-Heavy
  • --algo=6 for CryptoNightXTL
  • --algo=7 for CryptoNightXHV-Heavy
  • --algo=8 for CryptoNight-Fast
  • --algo=9 for CryptoNightFEST

If algo is not specified 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.

Change History

Cast XMR Version 1.4.0 (2018/8/27)

  • 3% performance improvement for CryptoNightTUBE-Heavy when mining BitTube (TUBE)
  • Support for Festival Coin (FEST) upcoming update which introduces a new CryptoNight variant: CryptoNightFEST. Use --algo=9 to continue mining Festival Coin after the network update happened
  • Subtle performance improvements
  • Tested with Radeon Adrenalin Driver 18.5.1

Cast XMR Version 1.3.0 (2018/6/29)

  • Performance improvement for job switches with multiple GPUs
  • Support for BitTube (TUBE) V4 Pow Update which introduces the new algo CryptoNightTUBE-Heavy aka CN Saber. Stay on --algo=5 to switch automatically from CryptoNightIPBC-Lite to CryptoNightTUBE-Heavy when the update is happening (approx. 2nd July). Please note that the hash rate will drop as it is a switch from a Lite to a Heavy variant.

Cast XMR Version 1.2.5 (2018/6/19)

  • Support for CryptoNight-Fast introduced with the Masari (MSR) update. Set --algo=8 to mine Masari (MSR). CryptoNight-Fast will produce higher hash rates than classic CryptoNight, typical hash rates are:
    • Vega64, 1025 Mhz MemClock: 3630 Hashes/s
    • Vega56, 945 Mhz MemClock: 3700 Hashes/s
    • VegaFE, 1025 Mhz MemClock: 3900 Hashes/s
    • RX 470/570, 2250 Mhz MemClock: 1550 Hashes/s

Cast XMR Version 1.2.0 (2018/6/12)

  • Fix for “unauthenticated shares” pool error
  • Support for the upcoming Haven (XHV) V3 update. In case you are mining Haven set --algo=7 now. Cast will then automatically switch to CryptoNightXHV-Heavy when the network update is happening.

Cast XMR Version 1.1.5 (2018/6/7)

  • Fix for mixed up device order
  • Support for Stellite (XTL) V4 Update. Add --algo=6 in case you are mining Stellite. It will automatically switch to CryptoNightXTL when the network update is happening.
  • Stability fixes

Cast XMR Version 1.1.0 (2018/6/1)

  • All new --intensity option to specify the memory allocation in the range of 0 to 10 (up to 12 for Vega Frontier Edition). The default setting will correspond with the settings of version 1.0 and are displayed at startup.
  • Vega Frontier ‘Large Pages’ support added, upto 30% higher hash rates for CryptoNight-Heavy, 5% increase for CryptoNight
  • Includes the switch-radeon-gpu command line tool to restart GPUs, switch on/off HBCC, Compute Mode and Large Pages
  • Nicehash supports now up to 24 GPUs (previous version was limited to 8)
  • --maxmem option is deprecated, will now be mapped to an corresponding intensity setting
  • --forcecompute is deprecated, ‘Compute Mode’ of Polaris GPUs will be automatically detected. To overwrite use the --intensity option
  • Default mining algo changed to CryptoNightV7, to still mine CryptoNight Classic add --algo=0
  • Tested with Radeon Adrenalin Driver 18.4.1

Cast XMR Version 1.0.0 (2018/4/24)

More info about Cast XMR Version 1.0.0 and earlier versions can be found here.

What about Linux?

A Linux version is technicaly ready, but does by far not reach the same performance as the Windows version, still investigating.

Updated on November 27th, 2018 to version 1.2.0

Switch Radeon GPU is a simple command line tool for restarting Radeon based GPUs. It can switch Polaris based GPUs (RX 470/480/570/580/590) from ‘Graphics Mode’ into ‘Compute Mode’. It also can toggle low level options of Radeon Vega GPUs like HBCC Memory and Large Pages support.

Switch Radeon GPU was developed as part of Cast XMR CryptoNight Miner but could be useful for handling Radeon GPUs for all sorts of workloads in OpenCL compute mode.

Make restarting your Radeon based GPU a breeze:

Switch Radeon GPU 1.2.0 for Windows (64 bit)

Features

  • Restarts Radeon GPUs
  • Switch ‘Compute Mode’ on or off (only Polaris based GPUs)
  • Switch ‘HBCC Memory’ on or off (only Vega based GPUs)
  • Switch ‘Large Pages’ on or off (only Vega based GPUs)

Requirements

  • Windows 8/8.1/10 64 bit
  • AMD Radeon RX Vega 56/64 GPU
  • or AMD Radeon Vega Frontier Edition GPU
  • or AMD Radeon RX 470/RX 480/RX 550/RX 560/RX 570/RX 580/RX 590 GPU
  • Radeon Driver 17.1.1 or later for restarting GPUs
  • Radeon Driver 18.1.1 or later for switching modes

How To

switch-radeon-gpu has a command line interface:

switch-radeon-gpu [-G 0,..,N] [options] [restart|autorestart|fullrestart]

Executing switch-radeon-gpu without any arguments will list all installed Radeon GPUs and their status.

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

switch-radeon-gpu -G 1 restart

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

switch-radeon-gpu -G 0,2 restart

There are different restart modes:

  • restart fast restart the specified GPU, the AMD Radeon Settings will sometimes not pick up the configuration changes and display the old state
  • autorestart only restart the GPU if necessary due to a change in configuration
  • fullrestart a more sustained restart of the GPU, also the AMD Radeon Settings app wil restart

If no GPU is specified with the -G option all available GPUs will be restarted!

Following options of the GPU can be switched:

  • --compute =on switch the GPU based in ‘Compute Mode’ =off switch to ‘Graphics Mode’ (Polaris only)
  • --hbcc switch HBCC =on or =off (Vega only)
  • --largepages switch large page support =on or =off (Vega only). Most usefull for Vega Frontier Edition to better utilize the available 16 GB memory

For example switch all Polaris based GPUs to Compute Mode:

switch-radeon-gpu --compute=on autorestart

To turn HBCC Memory option for all Vega based GPUs to off:

switch-radeon-gpu --hbcc=off autorestart

To toggle Large Pages only for the 1st GPU to on:

switch-radeon-gpu -G 0 --largepages=on restart

For a complete list of configuration options run:

switch-radeon-gpu --help

Change History

Switch Radeon GPU Version 1.2.0 (2018/11/27)

  • fix: now working with latest Adrenalin drivers (18.11.2)
  • support for RX 590 added

Switch Radeon GPU Version 1.0.5 (2018/11/07)

  • support for RX 550 and RX 560 added

Switch Radeon GPU Version 1.0.0 (2018/10/31)

  • bug fix with AMD Driver 18.5.1 and newer: when disabling large pages for Vegas switched GPU in a low performance mode

Switch Radeon GPU Version 0.9.5 (2018/6/06)

  • Fixed a bug where the order and name of the devices was mixed up

Switch Radeon GPU Version 0.9.0 (2018/5/30)

  • First release

Updated on April 24th, 2018 to version 1.0.0

This version is outdated, please check the latest version here

Here is ‘Cast XMR’ the high performance CryptoNight miner for CryptoNote based crypto currencies like Monero (XMR), Electroneum (ETN), Bytecoin (BCN) and many more.

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 GPU.

cast xmr

Hash faster and try it for yourself:

Cast XMR 1.0.0 for Windows (64 bit)

Features

  • Full support for:
  • Fastest miner for AMD Radeon RX Vega GPU series
  • Radeon RX Vega 64
    • Blockchain driver and 1025 MHz mem clock: 1990 Hash/s
    • Adrenalin driver 18.3.4 and 1025 MHz mem clock: 1980 Hash/s
  • Radeon RX Vega 56
    • Blockchain driver and 945 MHz mem clock: 1970! Hash/s
    • Adrenalin 18.3.4 driver and 945 MHz mem clock: 1970 Hash/s
  • Radeon RX 480/RX 580
    • Blockchain driver and 2315 MHz mem clock: 810 Hash/s
  • Radeon RX 470/RX 570
    • Blockchain driver and 2250 MHz mem clock: 830 Hash/s
    • Adrenalin 18.3.4 driver in compute mode and 2250 MHz mem clock: 820 Hash/s
  • Multiple GPU support
  • Monitor temperature and fan speed of each GPU
  • Full pool support
  • Nicehasher support
  • Fast Job Switch option to minimize outdated shares
  • Remote http access for statistics in JSON format
  • only 1.5% dev fee

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:

  • --algo=0 for CryptoNight (Classic)
  • --algo=1 for CryptoNightV7
  • --algo=2 for CryptoNight-Heavy
  • --algo=3 for CryptoNight-Lite
  • --algo=4 for CryptoNightV7-Lite
  • --algo=5 for CryptoNightIPBC-Lite

If algo is not specified 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

Read here how to get the best mining performance with a Radeon RX Vega 56/64 GPU

Change History

Cast XMR Version 1.0.0 (2018/4/24)

  • Support for Aeon (AEON) CryptoNight Lite variant set --algo=3 to mine
  • Support for Turtlecoin (TRTL) CryptoNightV7 Lite variant set --algo=4 to mine
  • Support for Interplanetary Broadcast Coin (IPBC) CryptoNight Lite IPBC variation set --algo=5 to mine
  • Up to 3% performance improvement with new option --maxmem to allocate the maximum memory of the card. For Vega cards the “HBCC Memory Segment” has to be disabled in the Radeon Settings to use the option. Disadvantage is a higher risk of hash rate drops when the --maxmem option is used.

Cast XMR Version 0.9.6 (2018/4/17)

  • CryptoNight-Heavy fix for very low hash rates when HBCC Memory Segment is enabled
  • HBCC Memory Segment performance hint for Vega64 when mining CryptoNightV7
  • Improvement for 4GB versions of RX 470/480/570/580 when mining CryptoNightV7

Cast XMR Version 0.9.5 (2018/4/14)

  • 0.5% performance improvement for the CryptoNightV7 kernel
  • support for CryptoNight Heavy set --algo=2 to mine:

Cast XMR Version 0.9.2 (2018/3/29)

  • Improvements for RX Vegas that achieve 99% the performance of the Blockchain Compute Beta driver with the latest standard Radeon Driver 18.3.4

Cast XMR Version 0.9.1 (2018/3/22)

  • 0.5% overall performance improvement for Vega based GPUs
  • --ratewatchdog experimental option to monitor the hash rate, in case an occasional happening drop of the hash rate is detected the kernel will be resetted to restore the optimal hash rate
  • fully tested CryptoNight variant (CryptoNightV7) for the Monero V7 Network Upgrade PoW Change which is now scheduled for the 6th April.
  • In case you want to mine the Graft coin use the --algo=0 option, an automatic detection of the used CryptoNight variant is not possible for this coin. For all other known CryptoNight coins the hash variant seems to be detected correct
  • In case you are mining with nicehash.com or any other automatic coin switching pool that has the Graft coin in the mix the --algo=0 option is advised to prevent invalid shares on the Graft coin. Be aware to remove the option when the Monero V7 network upgrade is happpening otherwise it then will clash with mining Monero!

Cast XMR Version 0.9.0 (2018/3/8)

  • support for the Monero V7 network upgrade. Read more about it here
  • the Monero PoW switch will be automatically detected, no restart of Cast XMR is required. Only make sure to update Cast XMR before the network upgrade is happening and that the used Monero pool supports the network upgrade
  • no decrase in hash rate for other currencies was introduced by the change
  • CryptoNightV7 will run at the same hash rate as CryptoNight
  • for any case there is the new --algo option to force which CryptoNight variant to use:
    • -1 = autodetect (default)
    • 0 = CryptoNight
    • 1 = CryptoNightV7 (Monero V7 network upgrade)

Cast XMR Version 0.8.5 (2018/2/1)

  • 1% performance gain for Vega Frontier Edition with Blockchain driver (fastest GPU around)
  • 1% performance improvement with current stock driver (18.1.1) for RX Vega 56/64 (40% to go to reach Blockchain driver)
  • fix for random blocking console output
  • GPU now always logs with its device id not the order they are listed in the -G argument
  • --log option to log output to a file
  • remote access includes CORS support in HTTP header

Cast XMR Version 0.8.1 (2017/12/15)

  • Fix for OpenCL automatic platform detection for Crimson driver 17.12.1 (Adrenalin). Blockchain driver is still way more performant on Vegas though

Cast XMR Version 0.8 (2017/12/14)

  • kernel optimizations result in subtle performance improvements
  • --fastjobswitch option (experimental) to force fast switching to new jobs. When enabled the GPUs will switch to the new job within less then 100ms. This improves the effective hash rate by 1 to 5% as nearly no GPU performance will be wasted on calculating outdated shares anymore. The drawback is a slightly lower displayed hashrate as while switching no hashes are calculated.
  • improved support for more then 8 GPUs
  • support for Radeon RX 470/RX 570 (Polaris) added
  • --forcecompute option to force kernel for compute mode on Polaris (RX470/570/480/580) GPUs. In the Radeon Settings GPU Workload has to be switched to ‘Compute’. This option is available in Crimson 17.10.2 (or later) driver and reaches nearly the same performance on Polaris based GPUs as with the Blockchain driver.
  • openCL platform is auto detected if --opencl is not specified
  • --nonicehash option to disable nicehash support
  • nicehash support will automatically disabled if more then 8 GPUs are used. Otherwise search space could be exhausted to early and the GPUs search in overlapping nonce ranges.

Cast XMR Version 0.7 (2017/11/29)

  • network and job status added to current statistics
  • remote access to get current status at http://127.0.0.1:7777 in JSON format (enable with --remoteaccess)
  • command line option to specify number of reconnects to pool (default 100) before giving up (set with --reconnects n). To realise a simple failover to another pool set it to a lower value and add a second configuration to batch file
  • fix for nicehash to support upto 8 GPUs (before only 4 were possible)

Cast XMR Version 0.6 (2017/10/27)

  • improved queue sync which results in an 0.1% higher average hash rate
  • experimental support for Radeon RX 480/580 GPUs added
  • pressing ‘s’ key prints the current statistics
  • count outdated and invalid shares separate
  • fixed random crash when quitting app
  • bugfix: invalid command line arguments did hang app

Cast XMR Version 0.5 (2017/10/19)

  • support for multiple Vega GPUs. Specify multiple GPUs comma separated with the -G switch like “-G 0,1,2,3”
  • monitor temperature and fan speed for each GPU
  • subtle performance improvements in core

Cast XMR Version 0.4 (2017/10/13)

  • performance optimzations result in 1 - 2% higher hash rates
  • reduced dev fee to 1.5%

Cast XMR Version 0.3 (2017/10/10)

  • performance optimzations result in 5 - 10% higher hash rates
  • breaking the 2 KHashes/s barrier with working overclocking settings for RX Vega 64 and RX Vega 56

Cast XMR Version 0.2 (2017/09/27)

  • performance improvement result in 1% higher hashrates
  • Improved support for RX Vega 56 (now goes faster then a Vega 64 !?)
  • Detection if Blockchain driver is installed
  • Fix for Sikka and Intense pools

Cast XMR Version 0.1 (2017/09/22)

  • Initial Release

A Linux version is nearly finished, but does not reach the same performance as the Windows version, still investigating.