Functions | |
nvmlReturn_t DECLDIR | nvmlDeviceSetPersistenceMode (nvmlDevice_t device, nvmlEnableState_t mode) |
Set the persistence mode for the device. | |
nvmlReturn_t DECLDIR | nvmlDeviceSetComputeMode (nvmlDevice_t device, nvmlComputeMode_t mode) |
Set the compute mode for the device. | |
nvmlReturn_t DECLDIR | nvmlDeviceSetEccMode (nvmlDevice_t device, nvmlEnableState_t ecc) |
Set the ECC mode for the device. | |
nvmlReturn_t DECLDIR | nvmlDeviceClearEccErrorCounts (nvmlDevice_t device, nvmlEccCounterType_t counterType) |
Clear the ECC error counts for the device. | |
nvmlReturn_t DECLDIR | nvmlDeviceSetDriverModel (nvmlDevice_t device, nvmlDriverModel_t driverModel, unsigned int flags) |
Set the driver model for the device. |
Each of these requires root/admin access. Non-admin users will see an NVML_ERROR_NO_PERMISSION error code when invoking any of these methods.
nvmlReturn_t DECLDIR nvmlDeviceClearEccErrorCounts | ( | nvmlDevice_t | device, | |
nvmlEccCounterType_t | counterType | |||
) |
Clear the ECC error counts for the device.
For Tesla and Quadro products from the Fermi family. Requires NVML_INFOROM_ECC version 2.0 or higher to clear aggregate location-based ECC counts. Requires NVML_INFOROM_ECC version 1.0 or higher to clear all other ECC counts. Requires root/admin permissions.
Sets all of the specified ECC counters to 0, including both detailed and total counts.
This operation takes effect immediately.
See nvmlEccCounterType_t for details on available counter types.
device | The identifer of the target device | |
counterType | Flag that indicates which type of errors should be cleared. |
nvmlReturn_t DECLDIR nvmlDeviceSetComputeMode | ( | nvmlDevice_t | device, | |
nvmlComputeMode_t | mode | |||
) |
Set the compute mode for the device.
For Tesla products, and Quadro products from the Fermi family. Requires root/admin permissions.
The compute mode determines whether a GPU can be used for compute operations and whether it can be shared across contexts.
This operation takes effect immediately. Under Linux it is not persistent across reboots and always resets to "Default". Under windows it is persistent.
Under windows compute mode may only be set to DEFAULT when running in WDDM
See nvmlComputeMode_t for details on available compute modes.
device | The identifer of the target device | |
mode | The target compute mode |
nvmlReturn_t DECLDIR nvmlDeviceSetDriverModel | ( | nvmlDevice_t | device, | |
nvmlDriverModel_t | driverModel, | |||
unsigned int | flags | |||
) |
Set the driver model for the device.
For Tesla products, and Quadro products from the Fermi family. 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.
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.
Under windows driver model may only be set to WDDM when running in DEFAULT compute mode.
See nvmlDriverModel_t for details on available driver models. See nvmlFlagDefault and nvmlFlagForce
device | The identifier of the target device | |
driverModel | The target driver model | |
flags | Flags that change the default behavior |
nvmlReturn_t DECLDIR nvmlDeviceSetEccMode | ( | nvmlDevice_t | device, | |
nvmlEnableState_t | ecc | |||
) |
Set the ECC mode for the device.
For Tesla and Quadro products from the Fermi family. Requires NVML_INFOROM_ECC version 1.0 or higher. Requires root/admin permissions.
The ECC mode determines whether the GPU enables its ECC support.
This operation takes effect after the next reboot.
See nvmlEnableState_t for details on available modes.
device | The identifer of the target device | |
ecc | The target ECC mode |
nvmlReturn_t DECLDIR nvmlDeviceSetPersistenceMode | ( | nvmlDevice_t | device, | |
nvmlEnableState_t | mode | |||
) |
Set the persistence mode for the device.
For Tesla products, and Quadro products from the Fermi family. For Linux only. Requires root/admin permissions.
The persistence mode determines whether the GPU driver software is torn down after the last client exits.
This operation takes effect immediately. It is not persistent across reboots. After each reboot the persistence mode is reset to "Disabled".
See nvmlEnableState_t for available modes.
device | The identifer of the target device | |
mode | The target persistence mode |