---
title: 函数：allocator_destroy_desc
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0975.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0975.html
indexId: f0426d4a2882961181bb87440e85d03c8ccf9c0f5dc1174327ce9c814a7d46d071
---
# 函数：allocator_destroy_desc

#### 产品支持情况

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


#### 功能说明

销毁通过acl.rt.allocator_create_desc接口创建的aclrtAllocatorDesc类型的数据。


#### 函数原型

- C函数原型
  1 aclError aclrtAllocatorDestroyDesc(aclrtAllocatorDesc alloctorDesc)

- python函数
  1 ret = acl.rt.allocator_destroy_desc(alloctorDesc)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| allocatorDesc | int，待销毁的aclrtAllocatorDesc类型的数据。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，返回0表示成功，返回其他值表示失败。 |
