aclGetCannAttributeList

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Queries the list of features supported by the CANN software and the corresponding AI processor in the operating environment.

Prototype

1
aclError aclGetCannAttributeList(const aclCannAttr **cannAttrList, size_t *num)

Parameters

Parameter

Input/Output

Description

cannAttrList

Output

Used to save the feature enumeration arrays supported by the operating environment. For details about the type definition, see aclCannAttr.

Users do not need to allocate memory in advance. When an app process exits, the memory is automatically released.

num

Output

Used to store the number of supported features. The value must be the same as the length of the cannAttrList array.

Returns

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