Malloc

Applicability

Product

Supported or Not

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File

#include <ge/ge_allocator.h>

Function Usage

Allocates the device memory based on the specified size in the user memory pool.

Prototype

1
virtual MemBlock *Malloc(size_t size) = 0

Parameters

Parameter

Input/Output

Description

size

Input

Size of the memory to be allocated.

Returns

Pointer to MemBlock.

Constraints

Pure virtual functions must be implemented by users.