aclGetCompileoptSize

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Description

Obtains the size of the memory for storing compilation option values.

You can call this API to get the memory size. You need to allocate memory for saving the values of compilation options before calling aclGetCompileopt.

This API is not required in scenarios that do not involve building (for example, single-operator API execution).

Prototype

size_t aclGetCompileoptSize(aclCompileOpt opt)

Parameters

Parameter

Input/Output

Description

opt

Input

Compilation option.

Returns

Returns the size of the memory for storing compilation option values, in bytes.