aclSetCompileopt

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 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.