Function: allocator_create_desc

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Function

Creates data of the aclrtAllocatorDesc type, indicating the Allocator description, which is mainly used to register callback functions.

Prototype

  • C Prototype
    1
    aclrtAllocatorDesc aclrtAllocatorCreateDesc()
    
  • Python Function
    1
    desc = acl.rt.allocator_create_desc()
    

Parameters

None

Return Value

Returned Value

Description

desc

int.

  • If a pointer address of the aclrtAllocatorDesc type is returned, the operation is successful.
  • NULL: failure