DeviceId

Gets the device id of a GPU.

Syntax

Copied!

ADLX_RESULT     DeviceId(const char** deviceId)

Parameters

  1. [out] deviceId const char** The pointer to a zero-terminated string where the device id of the GPU is returned.

Return Value

If the device id is successfully returned, ADLX_OK is returned.

If the device id is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

The device id is a predetermined value programmed into the GPU at the point of manufacturing and consists of four hexadecimal digits.

Additional Info

The returned memory buffer is valid within the lifetime of the IADLXGPU interface.

If the application uses the device id beyond the lifetime of the IADLXGPU interface, the application must make a copy of the device id.

Requirements

Header

include “ISystem.h”

Minimum version

1.0