mx_init

Function Usage

Performs global initialization and allocates device and log resources.

The mx_init API can be called only once per process and must be used together with the global deinitialization API mx_deinit.

For Atlas inference product and Atlas 800I A2 inference server, all function prototypes of mx_init can be used. For Atlas 200/300/500 inference product and Atlas 200I/500 A2 inference product, mx_init() can be used.

For details, see Initialization and Deinitialization.

Prototype

1
mx_init()
1
mx_init(config: AppGlobalCfgExtra)

Input Parameters

Parameter

Type

Description

config

AppGlobalCfgExtra

AppGlobalCfgExtra type that applies to global configuration.

Response Parameters

Data Structure

Description

int

Error code returned during program execution.