aclSetCompileopt

Description

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

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

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.