aclGetCannAttribute

Description

Queries whether the operating environment supports the specified CANN feature.

Prototype

aclError aclGetCannAttribute(aclCannAttr cannAttr, int32_t *value)

Parameters

Parameter

Input/Output

Description

cannAttr

Input

Enumerated value of the feature list. You can specify one item at a time.

value

Output

Supported/Unsupported

  • 1: supported
  • 0: unsupported

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.