aclrtIpcOpenEventHandle

Applicability

Product

Supported

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

Description

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

aclError aclrtIpcOpenEventHandle(aclrtIpcEventHandle handle, aclrtEvent *event)

Parameters

Parameter

Input/Output

Description

handle

Input

Event handle.

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

event

Output

Event pointer.

Returns

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