You ask — we answer!

Switch GPU modes in Windows

Open the Start menu and type cmd on the keyboard. Then, right-click on the Command Prompt app and select Run as administrator. Finally, execute the Nvidia System Management Interface command-line utility:

nvidia-smi.exe

This command will display a summary about installed Nvidia GPUs. Keep in mind that Nvidia GPU drivers operates in WDDM (Windows Display Driver Model) mode by default:

nvidia-smi WDDM mode

As you can see, some system processes are running using GPU with ID 0. This mode is incompatible with many compute capabilities provided by Nvidia.

WDDM to TCC

For instance, if you want to run C/C++ CUDA applications, you need to switch the driver on each GPU to a different operating mode: TCC (Tesla Compute Cluster):

nvidia-smi -i 0 -dm TCC
Set driver model to TCC for GPU 00000000:03:00.0.
All done.
Reboot required.

Here, 0 is an ID of the GPU. You can see all IDs (started from 0) in the nvidia-smi output (first column). Apply this action to each GPU and finally reboot the server.

After the boot process finished, execute nvidia-smi utility again. It will shows that driver mode was changed to TCC:

nvidia-smi TCC mode

TCC to WDDM

If you want to revert changes, you can execute the following command:

nvidia-smi -i 0 -dm WDDM

In some cases, you need to use a hybrid method. For example, if you use Houdini with a custom rendering engine like RedShift, one GPU will handle application resources and should be left in WDDM mode. It makes sense to switch the remaining GPUs to TCC mode to achieve optimal performance.



Published: 08.05.2024


Still have questions? Write to us!

By clicking «I Accept» you confirm that you have read and accepted the website Terms and Conditions, Privacy Policy, and Moneyback Policy.