Skip to content

AdlAdapterIndexFromADLXGPU

Navigation: ADLX SDK ReferencesADLX InterfacesMiscellaneousIADLMapping

Syntax

ADLX_RESULT    AdlAdapterIndexFromADLXGPU (IADLXGPU* ppGPU, adlx_int* adlAdapterIndex)

Parameters

#DirectionNameTypeDescription
1.[in]pGPUIADLXGPUThe pointer to the GPU interface.
#DirectionNameTypeDescription
---------------
2.[out]adlAdapterIndexadlx_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

Headerinclude “ADLXDefines.h”
Minimum version1.0

See Also: IADLXGPU, ADLX Enums