aclrtIpcOpenEventHandle

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

Atlas inference product

Atlas training product

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

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 Interprocess communication.