aclopSetCompileFlag (Deprecated)

Note: This API will be deprecated in future releases. Call aclSetCompileopt instead to set build options.

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

Function Usage

Sets the operator compilation flag before the operator is compiled. This setting takes effect globally at the process level.

Prototype

1
aclError aclopSetCompileFlag(aclOpCompileFlag flag)

Parameters

Parameter

Input/Output

Description

flag

Input

Operator compilation flag. For details about the type definition, see aclOpCompileFlag.

If it is not set, precise compilation is used by default.

Returns

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