C函数原型
aclError aclrtFreeHost(void *hostPtr)
Python函数
ret= acl.rt.free_host(host_ptr)
函数功能
释放Host上的内存,同步接口。
acl.rt.free_host接口只能释放通过acl.rt.malloc_host接口申请的内存。
输入说明
host_ptr:int,待释放内存的对象的指针。
返回值说明
ret:int,错误码。
约束说明
无
注意事项
参考资源
接口调用示例,参见数据传输。