---
title: aclrtStreamQuery
description: 查询指定Stream上的所有任务是否已经执行完成。同步接口。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgc/aclcppdevg_03_0063.html"
---

# aclrtStreamQuery

#### 函数功能

查询指定Stream上的所有任务是否已经执行完成。同步接口。


#### 函数原型

aclError aclrtStreamQuery(aclrtStream stream, aclrtStreamStatus *status)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| stream | 输入 | Stream的指针。 |
| status | 输出 | Stream上的任务状态。 |


#### 返回值说明

返回0表示成功，返回其它值表示失败。
