函数:subscribe_report
| 
         C函数原型  | 
       
         aclError aclrtSubscribeReport(uint64_t threadId, aclrtStream stream)  | 
      
|---|---|
| 
         Python函数  | 
       
         ret = acl.rt.subscribe_report(thread_id, stream)  | 
      
| 
         函数功能  | 
       
         异步任务场景下,指定处理Stream上回调函数的线程。 
         本接口需与以下其它接口配合使用,以便实现异步场景下的Callback功能:
          
  | 
      
| 
         输入说明  | 
       
         thread_id:int,指定线程id。 stream:int,指定需要处理的Stream的指针地址。  | 
      
| 
         返回值说明  | 
       
         ret:int,错误码。 
  | 
      
| 
         约束说明  | 
       
        
  | 
      
| 
         参考资源  | 
       
     父主题: 执行控制