Open3D (C++ API)
0.17.0+2db2502
|
Interface for all concrete memory manager classes. More...
#include <MemoryManager.h>
Public Member Functions | |
virtual | ~MemoryManagerDevice ()=default |
virtual void * | Malloc (size_t byte_size, const Device &device)=0 |
virtual void | Free (void *ptr, const Device &device)=0 |
Frees previously allocated memory at address ptr on device device . More... | |
virtual void | Memcpy (void *dst_ptr, const Device &dst_device, const void *src_ptr, const Device &src_device, size_t num_bytes)=0 |
Interface for all concrete memory manager classes.
|
virtualdefault |
|
pure virtual |
Frees previously allocated memory at address ptr
on device device
.
Implemented in open3d::core::MemoryManagerCPU, and open3d::core::MemoryManagerCached.
|
pure virtual |
Allocates memory of byte_size
bytes on device device
and returns a pointer to the beginning of the allocated memory block.
Implemented in open3d::core::MemoryManagerCPU, and open3d::core::MemoryManagerCached.
|
pure virtual |
Copies num_bytes
bytes of memory at address src_ptr
on device src_device
to address dst_ptr
on device dst_device
.
Implemented in open3d::core::MemoryManagerCPU, and open3d::core::MemoryManagerCached.