---
title: aclrtDestroyStreamForce
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_0071.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_0071.html
indexId: ae026ffc1e27fa32647fb7d949e71d04f19f87e5a631f3fb26eb43ac8efe5c2268
---
# aclrtDestroyStreamForce

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 功能说明

销毁Stream，销毁通过aclrtCreateStream或aclrtCreateStreamWithConfig接口创建的Stream，若Stream上有未完成的任务，不会等待任务完成，直接强制销毁Stream。


#### 函数原型

```
aclError aclrtDestroyStreamForce(aclrtStream stream)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| stream | 输入 | 待销毁的Stream。类型定义请参见aclrtStream。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。


#### 约束说明

调用本接口销毁指定Stream时，需确保该Stream在当前Context下。
