NVML API Reference Guide (PDF) - vR550 (older) - Last updated March 12, 2024 - Send Feedback

4.27. Excluded GPU Queries

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

Classes

struct 

Functions

nvmlReturn_t nvmlGetExcludedDeviceCount ( unsigned int* deviceCount )
nvmlReturn_t nvmlGetExcludedDeviceInfoByIndex ( unsigned int  index, nvmlExcludedDeviceInfo_t* info )

Functions

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

Description

Retrieves the number of excluded GPU devices in the system.

For all products.

nvmlReturn_t nvmlGetExcludedDeviceInfoByIndex ( unsigned int  index, nvmlExcludedDeviceInfo_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 an excluded GPU device, based on its index.

For all products.

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

See also:

nvmlGetExcludedDeviceCount


NVML API Reference Guide (PDF) - vR550 (older) - Last updated March 12, 2024 - Send Feedback