aclrtDestroyEvent

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

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

1
aclError aclrtDestroyEvent(aclrtEvent event)

Parameters

Parameter

Input/Output

Description

event

Input

Event to destroy. For details about the type definition, see aclrtEvent.

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.

API Call Example

For the API call example, see Event Creation and Destruction.