MallocAdvise

Description

Allocates device memory in the user memory pool based on the specified size. The recommended memory address is the value of addr.

Prototype

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 memory address.

Returns

Pointer to MemBlock

Exception Handling

None

Restrictions

Virtual functions need to be implemented by users. If this function is not implemented, it equals to Malloc by default.