函数:record_event
| C函数原型 | aclError aclrtRecordEvent(aclrtEvent event, aclrtStream stream) | 
|---|---|
| Python函数 | ret = acl.rt.record_event(event, stream) | 
| 函数功能 | 在Stream中记录一个Event。 | 
| 输入说明 | event:int,待记录的Event的指针地址。 stream:int,将该Event记录在指定的Stream(指针地址)中,如果使用默认Stream,此处设置为0。 | 
| 返回值说明 | ret:int,错误码。 
 | 
| 约束说明 | 
 | 
| 参考资源 | 
 | 
父主题: 同步等待