Switch Radeon GPU: Restart GPUs and switch Polaris Compute Mode, Vega HBCC Memory and Large Pages

Updated on November 7nd, 2018 to version 1.0.5

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) 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.0.5 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 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.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 parges 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

Gandalph3000

Gandalph3000
Casting software for high performance, massive parallel computing and machine learning.