MallocAdvise
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Header File
#include <ge/ge_allocator.h>
Function Usage
Allocates device memory in the user memory pool based on the specified size. The recommended memory address is the value of addr.
Prototype
1
|
virtual MemBlock *MallocAdvise(size_t size, void *addr) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
size |
Input |
Size of the memory to be allocated. |
|
addr |
Input |
Recommended address (value of addr) of the memory to be allocated. |
Parent topic: Allocator