aclrtDestroyEvent

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

Destroys an event. This API can be called to destroy an event before the event is complete. In this case, this API does not block the thread until the event is complete. Event-related resources are automatically released when the event is complete.

Prototype

aclError aclrtDestroyEvent(aclrtEvent event)

Parameters

Parameter

Input/Output

Description

event

Input

Event to destroy.

Returns

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

Restrictions

It is the aclrtDestroyEvent caller's responsibility to ensure that the event is not being accessed by any other API calls.

See Also

For details about the API call sequence and example, see Synchronous Wait of an Event and Synchronous Wait of Tasks Between Streams (Implemented Using Events).