aclrtIpcOpenEventHandle

Applicable Products

Product

Supported

Ascend 950PR

Ascend 950DT

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

Function

Obtains the handle information in the current process and returns the event pointer that can be used by this process.

This API must be used with other APIs to synchronize tasks across processes. For details, see aclrtIpcGetEventHandle.

Prototype

1
aclError aclrtIpcOpenEventHandle(aclrtIpcEventHandle handle, aclrtEvent *event)

Parameters

Parameter

Input/Output

Description

handle

Input

Event handle. For details about the type definition, see aclrtIpcEventHandle.

First call aclrtIpcGetEventHandle to obtain the handle of this event and then pass the handle as an input.

event

Output

Event pointer. For details about the type definition, see aclrtEvent.

Returns

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

API Call Example

For the API call example, see Inter-Process Communication.