aclGetCannAttributeList
Description
Queries the list of features supported by the CANN software and the corresponding Ascend AI Processor in the operating environment.
Prototype
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. 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
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: System Configuration