aclplatformGetDeviceInfo

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Queries the hardware information of the corresponding AI processor product.

Prototype

1
aclError aclplatformGetDeviceInfo(aclplatformDevInfo infoType, char *value, uint32_t maxLen)

Parameters

Parameter

Input/Output

Description

infoType

Input

Hardware information type. For details about the type definition, see aclplatformDevInfo.

value

Output

Pointer to the character buffer for receiving the query result. The returned content is a character string. Numeric information (such as size, quantity, and frequency) is represented by decimal strings.

maxLen

Input

Maximum memory size (in bytes) for storing the value.

If the actual result exceeds this length, the API returns an error.

Returns

0 on success; otherwise, failure. For details, see aclError.