aclopSetCompileFlag (Deprecated)

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

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

×

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

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.