Open3D (C++ API)
Static Public Member Functions | Static Protected Member Functions
open3d::MemoryManager Class Reference

#include <MemoryManager.h>

Static Public Member Functions

static void * Malloc (size_t byte_size, const Device &device)
 
static void Free (void *ptr, const Device &device)
 
static void Memcpy (void *dst_ptr, const Device &dst_device, const void *src_ptr, const Device &src_device, size_t num_bytes)
 
static void MemcpyFromHost (void *dst_ptr, const Device &dst_device, const void *host_ptr, size_t num_bytes)
 Same as Memcpy, but with host (CPU:0) as default src_device. More...
 
static void MemcpyToHost (void *host_ptr, const void *src_ptr, const Device &src_device, size_t num_bytes)
 Same as Memcpy, but with host (CPU:0) as default dst_device. More...
 

Static Protected Member Functions

static std::shared_ptr< DeviceMemoryManagerGetDeviceMemoryManager (const Device &device)
 

Member Function Documentation

◆ Free()

void open3d::MemoryManager::Free ( void *  ptr,
const Device device 
)
static

◆ GetDeviceMemoryManager()

std::shared_ptr< DeviceMemoryManager > open3d::MemoryManager::GetDeviceMemoryManager ( const Device device)
staticprotected

◆ Malloc()

void * open3d::MemoryManager::Malloc ( size_t  byte_size,
const Device device 
)
static

◆ Memcpy()

void open3d::MemoryManager::Memcpy ( void *  dst_ptr,
const Device dst_device,
const void *  src_ptr,
const Device src_device,
size_t  num_bytes 
)
static

◆ MemcpyFromHost()

void open3d::MemoryManager::MemcpyFromHost ( void *  dst_ptr,
const Device dst_device,
const void *  host_ptr,
size_t  num_bytes 
)
static

Same as Memcpy, but with host (CPU:0) as default src_device.

◆ MemcpyToHost()

void open3d::MemoryManager::MemcpyToHost ( void *  host_ptr,
const void *  src_ptr,
const Device src_device,
size_t  num_bytes 
)
static

Same as Memcpy, but with host (CPU:0) as default dst_device.


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