函数:host_unregister
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
功能说明
取消注册Host内存。本接口与acl.rt.host_register接口成对使用。
函数原型
- C函数原型
1
aclError aclrtHostUnregister(void *ptr)
- python函数
1
ret = acl.rt.host_unregister(ptr)
参数说明
参数名 |
说明 |
---|---|
ptr |
int,Host侧内存地址。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: 内存管理