aclSetCompileopt

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 a build option to share globally across processes. You can call this API before building an operator or model. The build option is used and remains unchanged during the build process.

Prototype

1
aclError aclSetCompileopt(aclCompileOpt opt, const char *value)

Parameters

Parameter

Input/Output

Description

opt

Input

Compilation option. For details about the type definition, see aclCompileOpt.

value

Input

Pointer to the value of a compilation option.

Returns

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