aclrtCreateEvent

Description

Creates an event. This API is synchronous.

The created events can be used to compute the elapsed time between two events, synchronize streams, and synchronize on an event.

Prototype

aclError aclrtCreateEvent(aclrtEvent *event)

Parameters

Parameter

Input/Output

Description

event

Output

Event pointer.

Returns

0 on success; else, failure.

Related APIs

aclrtCreateEventWithFlag: creates an event with a flag. Currently, the flag must be ACL_EVENT_TIME_LINE, which indicates that the number of created events is not limited, but the created events can only be used to compute the elapsed time between events.

See Also