NVML API Reference Guide (PDF) - vR440 (older) - Last updated November 19, 2019 - Send Feedback

2.26. GPU Blacklist Queries

This chapter describes NVML operations that are associated with blacklisted GPUs.

Classes

struct 

Functions

nvmlReturn_t nvmlGetBlacklistDeviceCount ( unsigned int* deviceCount )
nvmlReturn_t nvmlGetBlacklistDeviceInfoByIndex ( unsigned int  index, nvmlBlacklistDeviceInfo_t* info )

Functions

nvmlReturn_t nvmlGetBlacklistDeviceCount ( unsigned int* deviceCount )
Parameters
deviceCount
Reference in which to return the number of blacklisted devices
Returns

Description

Retrieves the number of blacklisted GPU devices in the system.

ALL_PRODUCTS%

nvmlReturn_t nvmlGetBlacklistDeviceInfoByIndex ( unsigned int  index, nvmlBlacklistDeviceInfo_t* info )
Parameters
index
The index of the target GPU, >= 0 and < deviceCount
info
Reference in which to return the device information
Returns

Description

Acquire the device information for a blacklisted device, based on its index.

ALL_PRODUCTS%

Valid indices are derived from the deviceCount returned by nvmlGetBlacklistDeviceCount(). For example, if deviceCount is 2 the valid indices are 0 and 1, corresponding to GPU 0 and GPU 1.

See also:

nvmlGetBlacklistDeviceCount


NVML API Reference Guide (PDF) - vR440 (older) - Last updated November 19, 2019 - Send Feedback