aclrtResetEvent

Description

Resets an event. Resets the event only after all tasks in the stream are completely executed. This API is asynchronous.

Restrictions

Resetting an event also resets the event status. The event status is recorded upon the aclrtRecordEvent API call. Therefore, insert the aclrtRecordEvent call prior to the aclrtResetEvent call.

API call sequence: aclrtCreateEvent --> aclrtRecordEvent --> aclrtResetEvent --> aclrtSynchronizeStream

Prototype

aclError aclrtResetEvent(aclrtEvent event, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

event

Input

Event to reset.

stream

Input

Stream where the event is.

Returns

0 on success; else, failure.