---
title: kpccl_static_graph_destroy
description: "销毁一个kpccl静态图。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_040.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_040.html
indexId: bc924bd4cb8e6ee394458ca1862fab14f81d62b5371b450c2cf8a9c2f976695273
---
# kpccl_static_graph_destroy

销毁一个kpccl静态图。

#### 接口定义

void kpccl_static_graph_destroy(kpccl_static_graph_h sgraph);


#### 参数


**表1 参数定义**

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| sgraph | kpccl\_static\_graph\_h | 需要销毁的静态图 | 输入 |


#### 示例

```
#include <stdio.h>
#include "kpccl.h"
int main()
{
kpccl_static_graph_h sgraph = kpccl_static_graph_create();
kpccl_static_graph_destroy
(sgraph);
return 0;
}
```

上述示例演示了创建static graph并最后销毁的流程。上述kpccl_static_graph_destroy函数销毁了之前创建的静态图。
