aclmdlRIEventRecordTaskParams

1
2
3
4
5
typedef struct aclmdlRIEventRecordTaskParams {
    aclrtEvent event;
    uint64_t eventFlag;
    uint32_t recordFlag;
} aclmdlRIEventRecordTaskParams;

Member

Description

event

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

eventFlag

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

recordFlag

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

  • ACL_EVENT_RECORD_DEFAULT: This is the default behavior, which is applicable to common scenarios. In this case, this API is equivalent to the aclrtRecordEvent API.
  • ACL_EVENT_RECORD_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 makes the recorded event visible to external systems, for synchronization between a graph and an external stream, as well as between graphs. In non-graph capture scenarios, if the flag is set to ACL_EVENT_RECORD_EXTERNAL, an error is reported.

The macros are defined as follows:

#define ACL_EVENT_RECORD_DEFAULT 0x0U
#define ACL_EVENT_RECORD_EXTERNAL 0x01U