aclGetCompileopt

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

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.

Prototype

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

Parameters

Parameter

Input/Output

Description

opt

Input

Compilation option. For details about the type definition, see aclCompileOpt.

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

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