昇腾社区首页
中文
注册

EventOperation

定义

struct EventParam {
    enum OperatorType : int {
        UNDEFINED = 0, 
        RECORD,    
        WAIT       
    };
    aclrtEvent event;
    OperatorType operatorType = UNDEFINED;
    uint8_t rsv[16] = {0};
};  

参数列表

成员名称

类型

默认值

描述

OperatorType

int

UNDEFINED

OperatorType支持的值。

  • UNDEFINED:默认值,不做任何操作。
  • RECORD:在Stream中记录一个Event。
  • WAIT:阻塞指定Stream的运行,直至指定的Event完成。

event

aclrtEvent

-

需要RECORD或者WAIT的Event。

operatorType

OperatorType

UNDEFINED

OperatorType,支持UNDEFINED、RECORD和WAIT。

rsv[16]

uint8_t

{0}

预留参数。