aclSetCompileopt

Applicability

Product

Supported

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

√

Description

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.

This API is not required in scenarios that do not involve building (for example, single-operator API execution).

Prototype

aclError aclSetCompileopt(aclCompileOpt opt, const char *value)

Parameters

Parameter

Input/Output

Description

opt

Input

Compilation option.

value

Input

Pointer to the value of a compilation option.

Returns

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