|
Open3D (C++ API)
0.17.0
|
#include <MemoryManager.h>
Public Member Functions | |
| void * | Malloc (size_t byte_size, const Device &device) override |
| void | Free (void *ptr, const Device &device) override |
Frees previously allocated memory at address ptr on device device. More... | |
| void | Memcpy (void *dst_ptr, const Device &dst_device, const void *src_ptr, const Device &src_device, size_t num_bytes) override |
Public Member Functions inherited from open3d::core::MemoryManagerDevice | |
| 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 |
Direct memory manager which performs allocations and deallocations on the CPU via std::malloc and std::free.
|
overridevirtual |
Frees previously allocated memory at address ptr on device device.
Implements open3d::core::MemoryManagerDevice.
|
overridevirtual |
Allocates memory of byte_size bytes on device device and returns a pointer to the beginning of the allocated memory block.
Implements open3d::core::MemoryManagerDevice.
|
overridevirtual |
Copies num_bytes bytes of memory at address src_ptr on device src_device to address dst_ptr on device dst_device.
Implements open3d::core::MemoryManagerDevice.