aclGetCompileopt

Description

Obtains the values of compilation options.

You can call this API to obtain the current values of compilation options. Before aclSetCompileopt is called, this API returns the default value of each compilation option. After aclSetCompileopt is called, this API returns the value set by the user.

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

Prototype

aclError aclGetCompileopt(aclCompileOpt opt, char *value, size_t length)

Parameters

Parameter

Input/Output

Description

opt

Input

Compilation option.

value

Output

Pointer to the memory for storing compilation option values.

Before calling this API, you need to allocate memory for saving the values of compilation options. You can call aclGetCompileoptSize to get the memory size.

length

Input

Size of the memory specified by value, in bytes.

Returns

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