---
title: aclrtcDestroyProg
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_00156.html
sourcePath: /source/zh/canncommercial/900/API/ascendcopapi/atlasascendc_api_07_00156.html
indexId: 71415149e2ddace665a300fe16377eb2210fa9f73db141a8ebfd75f4699b47f977
---
# aclrtcDestroyProg

#### 产品支持情况

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


#### 功能说明

销毁编译程序的实例。


#### 函数原型

```
aclError aclrtcDestroyProg(aclrtcProg *prog)
```


#### 参数说明


**表1 接口参数说明**

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| prog | 输入 | 运行时编译程序的句柄。 |


#### 返回值说明

aclError为int类型变量，详细说明请参考RTC错误码。


#### 约束说明

无


#### 调用示例

```
aclrtcProg prog;
aclError result = aclrtcDestroyProg(&prog);
```
