昇腾社区首页
中文
注册

函数:host_unregister

C函数原型

aclError aclrtHostUnregister(void *ptr)

Python函数

ret = acl.rt.host_unregister(ptr)

函数功能

去注册Host内存。本接口与acl.rt.host_register接口成对使用。

输入说明

ptr:int,Host侧内存地址。

返回值说明

ret:int,返回0表示成功,返回其他值表示失败,请参见aclError