GEInitialize

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

x

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <ge/ge_api.h>
  • Library file: libge_runner.so

Function Usage

Initializes GE.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
Status GEInitialize(const std::map<std::string, std::string> &options)
Status GEInitialize(const std::map<AscendString, AscendString> &options)

Parameters

Parameter

Input/Output

Description

options

Input

A key-value mapping table, for the initialization configuration. key indicates the parameter type, and value indicates the parameter value, both of type string. For the supported configurations, see the parameters of the global level in Options.

Returns

Parameter

Type

Description

-

Status

0: The initialization is successful.

Other values: The initialization fails.

Restrictions

  • GE does not support multi-instance running. Only one instance can be initialized at a time.
  • If this API is called multiple times but GEFinalize is not called, the execution result is unpredictable.