NVIDIA DeepStream SDK API Reference

8.0 Release
nvdsinferserver::CudaHostMem Class Reference

Detailed Description

Allocates and manages CUDA pinned memory.

Definition at line 142 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

Inheritance diagram for nvdsinferserver::CudaHostMem:
Collaboration diagram for nvdsinferserver::CudaHostMem:

Public Member Functions

 CudaHostMem (size_t size, int gpuId=0)
 
 ~CudaHostMem () override
 
void grow (size_t bytes) override
 
 CudaHostMem (size_t size, int gpuId=0)
 
 ~CudaHostMem () override
 
void grow (size_t bytes) override
 
size_t bytes () const
 
size_t bytes () const
 
template<typename T >
T * ptr () const
 
void * ptr () const
 
template<typename T >
T * ptr () const
 
void * ptr () const
 
int devId () const
 
int devId () const
 
InferMemType type () const
 
InferMemType type () const
 
void reuse ()
 
void reuse ()
 

Protected Member Functions

void move_copy (SysMem &&o)
 
void move_copy (SysMem &&o)
 
 DISABLE_CLASS_COPY (SysMem)
 
 DISABLE_CLASS_COPY (SysMem)
 

Protected Attributes

void * m_Buf = nullptr
 
size_t m_Size = 0
 
int m_DevId = 0
 
InferMemType m_Type = InferMemType::kNone
 

Constructor & Destructor Documentation

◆ CudaHostMem() [1/2]

nvdsinferserver::CudaHostMem::CudaHostMem ( size_t  size,
int  gpuId = 0 
)

◆ ~CudaHostMem() [1/2]

nvdsinferserver::CudaHostMem::~CudaHostMem ( )
override

◆ CudaHostMem() [2/2]

nvdsinferserver::CudaHostMem::CudaHostMem ( size_t  size,
int  gpuId = 0 
)

◆ ~CudaHostMem() [2/2]

nvdsinferserver::CudaHostMem::~CudaHostMem ( )
override

Member Function Documentation

◆ bytes() [1/2]

size_t nvdsinferserver::SysMem::bytes ( ) const
inlineinherited

◆ bytes() [2/2]

size_t nvdsinferserver::SysMem::bytes ( ) const
inlineinherited

◆ devId() [1/2]

int nvdsinferserver::SysMem::devId ( ) const
inlineinherited

◆ devId() [2/2]

int nvdsinferserver::SysMem::devId ( ) const
inlineinherited

◆ DISABLE_CLASS_COPY() [1/2]

nvdsinferserver::SysMem::DISABLE_CLASS_COPY ( SysMem  )
protectedinherited

◆ DISABLE_CLASS_COPY() [2/2]

nvdsinferserver::SysMem::DISABLE_CLASS_COPY ( SysMem  )
protectedinherited

◆ grow() [1/2]

void nvdsinferserver::CudaHostMem::grow ( size_t  bytes)
overridevirtual

◆ grow() [2/2]

void nvdsinferserver::CudaHostMem::grow ( size_t  bytes)
overridevirtual

◆ move_copy() [1/2]

◆ move_copy() [2/2]

◆ ptr() [1/4]

template<typename T >
T* nvdsinferserver::SysMem::ptr ( ) const
inlineinherited

◆ ptr() [2/4]

template<typename T >
T* nvdsinferserver::SysMem::ptr ( ) const
inlineinherited

◆ ptr() [3/4]

void* nvdsinferserver::SysMem::ptr ( ) const
inlineinherited

◆ ptr() [4/4]

void* nvdsinferserver::SysMem::ptr ( ) const
inlineinherited

◆ reuse() [1/2]

void nvdsinferserver::SysMem::reuse ( )
inlineinherited

◆ reuse() [2/2]

void nvdsinferserver::SysMem::reuse ( )
inlineinherited

◆ type() [1/2]

InferMemType nvdsinferserver::SysMem::type ( ) const
inlineinherited

◆ type() [2/2]

InferMemType nvdsinferserver::SysMem::type ( ) const
inlineinherited

Field Documentation

◆ m_Buf

void * nvdsinferserver::SysMem::m_Buf = nullptr
protectedinherited

◆ m_DevId

int nvdsinferserver::SysMem::m_DevId = 0
protectedinherited

◆ m_Size

size_t nvdsinferserver::SysMem::m_Size = 0
protectedinherited

◆ m_Type

InferMemType nvdsinferserver::SysMem::m_Type = InferMemType::kNone
protectedinherited

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