aclprofSetConfig

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

Functions as an extended API of aclprofCreateConfig and is used to set profile data collection parameters.

This API can be called for multiple times. You need to ensure data consistency and accuracy.

Prototype

1
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength)

Parameters

Parameter

Input/Output

Description

configType

Input

It is used as the value of the configType parameter. Each enumerated value indicates a different collection configuration. To collect multiple types of profile data, you need to call this API for multiple times. For details, see aclprofConfigType.

config

Input

Configuration parameter value.

configLength

Input

Length of the config, in bytes. The maximum length is 256 bytes.

Returns

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

Restrictions

Call aclprofSetConfig and then aclprofStart. You can call this API as required.