跳到主要内容

aclrtDestroyStreamConfigHandle

aclrtDestroyStreamConfigHandle​

函数功能​

销毁通过aclrtCreateStreamConfigHandle接口创建的aclrtStreamConfigHandle类型的数据。同步接口。

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

函数原型​

aclError aclrtDestroyStreamConfigHandle(****aclrtStreamConfigHandle *handle)

参数说明​

参数名输入/输出说明
handle输入待销毁的aclrtStreamConfigHandle类型的指针。

返回值说明​

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

父主题: aclrtStreamConfigHandle

aclrtAllocatorCreateDesc​

函数功能​

创建aclrtAllocatorDesc类型的数据,表示Allocator描述信息,主要用于注册回调函数。同步接口。

函数原型​

aclrtAllocatorDesc aclrtAllocatorCreateDesc**()**

返回值说明​

  • 返回aclrtAllocatorDesc类型的指针,表示成功。
  • 返回NULL,表示失败。

父主题: aclrtAllocatorDesc

aclrtAllocatorDestroyDesc​

函数功能​

销毁通过aclrtAllocatorCreateDesc接口创建的aclrtAllocatorDesc类型的数据。同步接口。

原型​

aclErroraclrtAllocatorDestroyDesc(aclrtAllocatorDesc allocatorDesc)

参数说明​

参数名输入/输出说明
allocatorDesc输入待销毁的aclrtAllocatorDesc类型的数据。

返回值说明​

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

父主题: aclrtAllocatorDesc

aclrtAllocatorSetObjToDesc​

函数功能​

使用用户提供的Allocator场景下,向Allocator描述信息中设置Allocator对象。

函数原型​

aclErroraclrtAllocatorSetObjToDesc(aclrtAllocatorDesc allocatorDesc, aclrtAllocator allocator)

参数说明​

参数名输入/输出说明
allocatorDesc输入Allocator描述符指针。 需提前调用aclrtAllocatorCreateDesc接口设置Allocator描述信息。
allocator输入用户提供的Allocator对象指针。

返回值说明​

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

父主题: aclrtAllocatorDesc

在线提单