aclrtDestroyEvent

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

Destroys an event. This API can be called to destroy an event even before the event is complete. In this case, this API does not block the thread to wait for the event to be complete. Event-related resources will not be automatically released until 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; otherwise, failure. For details, see aclError.

Restrictions

The event passed to the aclrtDestroyEvent call must not be in use by other API calls.

API Call Example

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