Base class for managing memory allocation.
Definition at line 87 of file infer_cuda_utils.h.

Public Member Functions | |
| virtual | ~SysMem ()=default |
| size_t | bytes () const |
| template<typename T > | |
| T * | ptr () const |
| void * | ptr () const |
| int | devId () const |
| InferMemType | type () const |
| void | reuse () |
| virtual void | grow (size_t bytes)=0 |
Protected Member Functions | |
| SysMem (size_t s, int devId) | |
| void | move_copy (SysMem &&o) |
| DISABLE_CLASS_COPY (SysMem) | |
Protected Attributes | |
| void * | m_Buf = nullptr |
| size_t | m_Size = 0 |
| int | m_DevId = 0 |
| InferMemType | m_Type = InferMemType::kNone |
|
virtualdefault |
|
inlineprotected |
Definition at line 106 of file infer_cuda_utils.h.
|
inline |
Definition at line 90 of file infer_cuda_utils.h.
References m_Size.
|
inline |
Definition at line 98 of file infer_cuda_utils.h.
References m_DevId.
|
protected |
|
pure virtual |
Implemented in nvdsinferserver::CpuMem, nvdsinferserver::CudaHostMem, and nvdsinferserver::CudaDeviceMem.
|
inlineprotected |
Definition at line 107 of file infer_cuda_utils.h.
References nvdsinferserver::kNone, m_Buf, m_DevId, m_Size, and m_Type.
|
inline |
Definition at line 93 of file infer_cuda_utils.h.
References m_Buf.
|
inline |
Definition at line 97 of file infer_cuda_utils.h.
References m_Buf.
|
inline |
Definition at line 100 of file infer_cuda_utils.h.
|
inline |
Definition at line 99 of file infer_cuda_utils.h.
References m_Type.
|
protected |
Definition at line 120 of file infer_cuda_utils.h.
Referenced by move_copy(), and ptr().
|
protected |
Definition at line 122 of file infer_cuda_utils.h.
Referenced by devId(), and move_copy().
|
protected |
Definition at line 121 of file infer_cuda_utils.h.
Referenced by bytes(), and move_copy().
|
protected |
Definition at line 123 of file infer_cuda_utils.h.
Referenced by move_copy(), and type().