aclSetCompileopt

Description

Sets a compilation option, which is shared globally across processes. An operator or a model is built according to the specified compilation option, which remains unchanged within a build process.

You can call this API to set build options before calling aclopCompile or aclopCompileAndExecute.

For scenarios that do not involve compilation (for example, single-operator API execution), this API is not required.

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

The value 0 indicates success, and other values indicate failure. For details, see aclError.