aclplatformGetDeviceInfo
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.