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

# 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函数销毁了之前创建的静态图。
