---
title: aclrtMemPoolDestroy
description: "须知：预留接口，暂不支持。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_2156.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_2156.html
indexId: 813e468c8a8202836e05dc2df4a7492a5862f1bcc9889ed7dcc1da5fbccef51768
---
# aclrtMemPoolDestroy

须知：预留接口，暂不支持。

#### 功能说明

销毁通过aclrtMemPoolCreate接口创建的内存池。


#### 函数原型

```
aclError aclrtMemPoolDestroy(const aclrtMemPool memPool)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| memPool | 输入 | 内存池实例。类型定义请参见aclrtMemPool。 |


#### 返回值说明

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