AdlAdapterIndexFromADLXGPU

Gets the ADL Adapter index corresponding to the GPU with the specified IADLXGPU interface.

Syntax

Copied!

ADLX_RESULT     AdlAdapterIndexFromADLXGPU (IADLXGPU * ppGPU, adlx_int* adlAdapterIndex)

Parameters

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

  2. [out] adlAdapterIndex adlx_int* The pointer to a variable where ADL adapter index of the requested GPU is returned.

Return Value

If the ADL adapter index is successfully returned, ADLX_OK is returned.

If the ADL Adapter index is not returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

AdlAdapterIndexFromADLXGPU is used when an ADL function must be called for a GPU obtained from ADLX, and the ADL adapter index is required for that ADL function.

Requirements

Header

include “ADLXDefines.h”

Minimum version

1.0