BdfFromADLXGPU

Gets the PCI bus number, device number, and function number corresponding to the GPU with the specified IADLXGPU interface.

Syntax

Copied!

ADLX_RESULT     BdfFromADLXGPU (IADLXGPU * ppGPU, adlx_int* bus, adlx_int* device, adlx_int* function)

Parameters

  1. [in] pGPU IADLXGPU * The pointer to the GPU interface.

  2. [out] bus adlx_int* The pointer to a variable where the unique PCIE bus number of the requested GPU is returned.

  3. [out] device adlx_int* The pointer to a variable where the device number of the requested GPU is returned.

  4. [out] function adlx_int* The pointer to a variable where function number of the requested GPU is returned.

Return Value

If bus, device, function are returned correctly, ADLX_OK is returned.

If bus, device, function are not returned correctly, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

BdfFromADLXGPU is used when an ADL function must be called for a GPU obtained from ADLX, and the GPU’s PCI bus, device, and function are required for that ADL function.

Requirements

Header

include “ADLXDefines.h”

Minimum version

1.0