aclmdlRIEventWaitTaskParams

1
2
3
4
5
typedef struct aclmdlRIEventWaitTaskParams {
    aclrtEvent event;
    uint64_t eventFlag;
    uint32_t waitFlag;
} aclmdlRIEventWaitTaskParams;

Member

Description

event

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

eventFlag

Event flag. For details, see the flag description in aclrtCreateEventExWithFlag.

waitFlag

Behavior of a wait action. The options are as follows:

  • ACL_EVENT_WAIT_DEFAULT: This is the default behavior, which is applicable to common scenarios. In this case, this API is equivalent to the aclrtStreamWaitEventWithTimeout API.
  • ACL_EVENT_WAIT_EXTERNAL: In this case, this API only applies to the graph capture scenario. When tasks on a stream are captured as a computation graph, this flag indicates waiting for an event outside the graph, for synchronization between a graph and an external stream, as well as between graphs.

The macros are defined as follows:

#define ACL_EVENT_WAIT_DEFAULT 0x0U
#define ACL_EVENT_WAIT_EXTERNAL 0x01U