Function Description

EventOperation in the ATB is used. This operation has three different operator types.

  • OperatorType = UNDEFINED

    In this case, EventOperation does not perform any operation in the Setup and Execute phases. As a node in GraphOp, EventOperation provides a skip mechanism.

  • OperatorType = RECORD

    In this case, EventOperation does not perform any operation in the Setup phase. In the Execute phase, the aclrtRecordEvent API is called to record the event in Param of the operation to the stream.

  • OperatorType = WAIT

    In this case, EventOperation does not perform any operation in the Setup phase. In the Execute phase, the aclrtStreamWaitEvent and aclrtResetEvent APIs are called in sequence. The running of the stream executed by the operation is blocked until the event in Param of the operation is recorded in the stream. Then, the event is reset so that the event can be repeatedly recorded or waited for (repeatedly used by EventOperation).