函数:stream_wait_event
产品支持情况
| 
          产品  | 
        
          是否支持  | 
       
|---|---|
| 
          | 
        
          √  | 
       
| 
          | 
        
          √  | 
       
| 
          | 
        
          √  | 
       
| 
          | 
        
          √  | 
       
| 
          | 
        
          √  | 
       
| 
          | 
        
          √  | 
       
使用说明
| 
          C函数原型  | 
        
          aclError aclrtStreamWaitEvent(aclrtStream stream, aclrtEvent event)  | 
       
|---|---|
| 
          Python函数  | 
        
          ret = acl.rt.stream_wait_event(stream, event)  | 
       
| 
          函数功能  | 
        
          阻塞指定Stream的运行,直到指定的Event完成,支持多个Stream等待同一个Event的场景。异步接口。 提交到Stream上的所有后续任务都需要等待Event捕获的任务都完成后才能开始执行。具体见acl.rt.record_event接口了解Event捕获的细节。  | 
       
| 
          输入说明  | 
        
          stream:int,指定需要等待Event完成的Stream的指针地址。如果使用默认Stream,此处设置为0。 event:int,需等待的Event的指针地址。  | 
       
| 
          返回值说明  | 
        
          ret:int,错误码。 
  | 
       
| 
          约束说明  | 
        
         
  | 
       
| 
          参考资源  |