Open3D (C++ API)  0.15.1
Public Member Functions
open3d::core::DeviceMemoryManager Class Referenceabstract

Interface for all concrete memory manager classses. More...

#include <MemoryManager.h>

Inheritance diagram for open3d::core::DeviceMemoryManager:
open3d::core::CPUMemoryManager open3d::core::CachedMemoryManager

Public Member Functions

virtual ~DeviceMemoryManager ()=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
 

Detailed Description

Interface for all concrete memory manager classses.

Constructor & Destructor Documentation

◆ ~DeviceMemoryManager()

virtual open3d::core::DeviceMemoryManager::~DeviceMemoryManager ( )
virtualdefault

Member Function Documentation

◆ Free()

virtual void open3d::core::DeviceMemoryManager::Free ( void *  ptr,
const Device device 
)
pure virtual

Frees previously allocated memory at address ptr on device device.

Implemented in open3d::core::CPUMemoryManager, and open3d::core::CachedMemoryManager.

◆ Malloc()

virtual void* open3d::core::DeviceMemoryManager::Malloc ( size_t  byte_size,
const Device device 
)
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::CPUMemoryManager, and open3d::core::CachedMemoryManager.

◆ Memcpy()

virtual void open3d::core::DeviceMemoryManager::Memcpy ( void *  dst_ptr,
const Device dst_device,
const void *  src_ptr,
const Device src_device,
size_t  num_bytes 
)
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::CPUMemoryManager, and open3d::core::CachedMemoryManager.


The documentation for this class was generated from the following file: