GEInitializeV2
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_api_v2.h>
- Library file: libge_runner_v2.so
Function Usage
Initializes GE for running.
Prototype
1 | Status GEInitializeV2(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. See Command-Line Options for the supported configurations. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
0: Initialization is successful. Other values: Initialization fails. |
Constraints
- The GE does not support multi-instance running. Only one instance can be initialized in one go.
- If this API is called for multiple times but GEFinalizeV2 is not called, the running result is unpredictable.
Parent topic: GESession