cuda.bindings.nvml.device_set_driver_model#

cuda.bindings.nvml.device_set_driver_model(
intptr_t device,
int driver_model,
unsigned int flags,
)#

Set the driver model for the device.

For Fermi ™️ or newer fully supported devices. For windows only. Requires root/admin permissions. On Windows platforms the device driver can run in either WDDM or WDM (TCC) mode. If a display is attached to the device it must run in WDDM mode. Driver-model availability is architecture-specific; attempting to set an unsupported driver model returns NVML_ERROR_NOT_SUPPORTED. It is possible to force the change to WDM (TCC) while the display is still attached with a force flag (nvmlFlagForce). This should only be done if the host is subsequently powered down and the display is detached from the device before the next reboot. This operation takes effect after the next reboot. Windows driver model may only be set to WDDM when running in DEFAULT compute mode. Change driver model to WDDM is not supported when GPU doesn’t support graphics acceleration or will not support it after reboot. See nvmlDeviceSetGpuOperationMode. See nvmlDriverModel_t for details on available driver models. See nvmlFlagDefault and nvmlFlagForce.

Parameters:
  • device (intptr_t) – The identifier of the target device.

  • driver_model (DriverModel) – The target driver model.

  • flags (unsigned int) – Flags that change the default behavior.

See also

nvmlDeviceSetDriverModel