aclrtAllocatorRegister

函数功能

调用该接口注册用户提供的Allocator以及Allocator对应的回调函数,用于使用用户提供的Allocator。

Atlas 200/300/500 推理产品,不支持该接口。

约束说明

函数原型

aclError aclrtAllocatorRegister(aclrtStream stream, aclrtAllocatorDesc allocatorDesc)

参数说明

参数名

输入/输出

说明

stream

输入

该Allocator需要注册的Stream。

allocatorDesc

输入

Allocator描述符指针。

返回值说明

返回0表示成功,返回其它值表示失败。