Class muda::Memory
Inherits the following classes: muda::LaunchBase
Public Types inherited from muda::LaunchBase
See muda::LaunchBase
| Type | Name |
|---|---|
| typedef T | derived_type |
Public Functions
| Type | Name |
|---|---|
| MUDA_HOST | Memory (cudaStream_t stream=nullptr) |
| MUDA_HOST Memory & | alloc (T ** ptr, size_t byte_size, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | alloc (T ** ptr, size_t * pitch, size_t width_bytes, size_t height, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | alloc (cudaPitchedPtr * pitched_ptr, const cudaExtent & extent, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | alloc_1d (T ** ptr, size_t byte_size, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | alloc_2d (T ** ptr, size_t * pitch, size_t width_bytes, size_t height, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | alloc_3d (cudaPitchedPtr * pitched_ptr, const cudaExtent & extent, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | copy (void * dst, const void * src, size_t byte_size, cudaMemcpyKind kind) |
| MUDA_HOST Memory & | copy (void * dst, size_t dst_pitch, const void * src, size_t src_pitch, size_t width_bytes, size_t height, cudaMemcpyKind kind) |
| MUDA_HOST Memory & | copy (const cudaMemcpy3DParms & parms) |
| MUDA_HOST Memory & | download (void * dst, const void * src, size_t byte_size) |
| MUDA_HOST Memory & | download (void * dst, size_t dst_pitch, const void * src, size_t src_pitch, size_t width_bytes, size_t height) |
| MUDA_HOST Memory & | download (cudaMemcpy3DParms parms) |
| MUDA_HOST Memory & | free (void * ptr, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | free (cudaPitchedPtr pitched_ptr, bool async=DEFAULT_ASYNC_ALLOC_FREE) |
| MUDA_HOST Memory & | set (void * data, size_t byte_size, char value=0) |
| MUDA_HOST Memory & | set (void * data, size_t pitch, size_t width_bytes, size_t height, char value=0) |
| MUDA_HOST Memory & | set (cudaPitchedPtr pitched_ptr, cudaExtent extent, char value=0) |
| MUDA_HOST Memory & | transfer (void * dst, const void * src, size_t byte_size) |
| MUDA_HOST Memory & | transfer (void * dst, size_t dst_pitch, const void * src, size_t src_pitch, size_t width_bytes, size_t height) |
| MUDA_HOST Memory & | transfer (cudaMemcpy3DParms parms) |
| MUDA_HOST Memory & | upload (void * dst, const void * src, size_t byte_size) |
| MUDA_HOST Memory & | upload (void * dst, size_t dst_pitch, const void * src, size_t src_pitch, size_t width_bytes, size_t height) |
| MUDA_HOST Memory & | upload (cudaMemcpy3DParms parms) |
Public Functions inherited from muda::LaunchBase
See muda::LaunchBase
| Type | Name |
|---|---|
| MUDA_GENERIC | LaunchBase (::cudaStream_t stream) |
| T & | callback (const std::function< void(::cudaStream_t, ::cudaError)> & callback) |
| T & | file_line (std::string_view file, int line) |
| T & | kernel_name (std::string_view name) |
| Next | next (Next n) |
| Next | next (Args &&... args) |
| T & | pop_range () |
| T & | push_range (const std::string & name) |
| T & | record (cudaEvent_t e, int flag=cudaEventRecordDefault) |
| T & | record (ComputeGraphVar< cudaEvent_t > & e, const std::vector< ComputeGraphVarBase * > & vars) |
| T & | record (ComputeGraphVar< cudaEvent_t > & e, ComputeGraphVar< ViewT > &... vars) |
| T & | wait (cudaEvent_t e, int flag=cudaEventWaitDefault) |
| T & | wait (const ComputeGraphVar< cudaEvent_t > & e, const std::vector< ComputeGraphVarBase * > & vars) |
| T & | wait (const ComputeGraphVar< cudaEvent_t > & e, ComputeGraphVar< ViewT > &... vars) |
| T & | wait () |
| T & | when (cudaEvent_t e, int flag=cudaEventWaitDefault) |
| ~LaunchBase () |
Public Functions inherited from muda::LaunchCore
See muda::LaunchCore
| Type | Name |
|---|---|
| MUDA_GENERIC | LaunchCore (::cudaStream_t stream) |
| void | callback (const std::function< void(::cudaStream_t, ::cudaError)> & callback) |
| void | init_stream (::cudaStream_t s) |
| void | pop_range () |
| void | push_range (const std::string & name) |
| void | record (cudaEvent_t e, int flag=cudaEventRecordDefault) |
| void | record (ComputeGraphVar< cudaEvent_t > & e, const std::vector< ComputeGraphVarBase * > & vars) |
| void | record (ComputeGraphVar< cudaEvent_t > & e, ComputeGraphVar< ViewT > &... vars) |
| void | wait (cudaEvent_t e, int flag=cudaEventWaitDefault) |
| void | wait (const ComputeGraphVar< cudaEvent_t > & e, const std::vector< ComputeGraphVarBase * > & vars) |
| void | wait (const ComputeGraphVar< cudaEvent_t > & e, ComputeGraphVar< ViewT > &... vars) |
| void | wait () |
| void | when (cudaEvent_t e, int flag=cudaEventWaitDefault) |
| ~LaunchCore () |
Public Static Functions inherited from muda::LaunchCore
See muda::LaunchCore
| Type | Name |
|---|---|
| void | file_line (std::string_view file, int line) |
| void | kernel_name (std::string_view name) |
| void | wait_device () |
| void | wait_event (cudaEvent_t event) |
| void | wait_stream (::cudaStream_t stream) |
Protected Types inherited from muda::LaunchCore
See muda::LaunchCore
| Type | Name |
|---|---|
| typedef std::shared_ptr< T > | S |
Protected Attributes inherited from muda::LaunchCore
See muda::LaunchCore
| Type | Name |
|---|---|
| ::cudaStream_t | m_stream |
Protected Functions inherited from muda::LaunchBase
See muda::LaunchBase
| Type | Name |
|---|---|
| T & | pop_kernel_label () |
Protected Functions inherited from muda::LaunchCore
See muda::LaunchCore
| Type | Name |
|---|---|
| MUDA_HOST void | pop_kernel_label () |
| MUDA_GENERIC::cudaStream_t | stream () const |
Public Functions Documentation
function Memory
function alloc [1/3]
template<typename T>
MUDA_HOST Memory & muda::Memory::alloc (
T ** ptr,
size_t byte_size,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function alloc [2/3]
template<typename T>
MUDA_HOST Memory & muda::Memory::alloc (
T ** ptr,
size_t * pitch,
size_t width_bytes,
size_t height,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function alloc [3/3]
MUDA_HOST Memory & muda::Memory::alloc (
cudaPitchedPtr * pitched_ptr,
const cudaExtent & extent,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function alloc_1d
template<typename T>
MUDA_HOST Memory & muda::Memory::alloc_1d (
T ** ptr,
size_t byte_size,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function alloc_2d
template<typename T>
MUDA_HOST Memory & muda::Memory::alloc_2d (
T ** ptr,
size_t * pitch,
size_t width_bytes,
size_t height,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function alloc_3d
MUDA_HOST Memory & muda::Memory::alloc_3d (
cudaPitchedPtr * pitched_ptr,
const cudaExtent & extent,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function copy [1/3]
MUDA_HOST Memory & muda::Memory::copy (
void * dst,
const void * src,
size_t byte_size,
cudaMemcpyKind kind
)
function copy [2/3]
MUDA_HOST Memory & muda::Memory::copy (
void * dst,
size_t dst_pitch,
const void * src,
size_t src_pitch,
size_t width_bytes,
size_t height,
cudaMemcpyKind kind
)
function copy [3/3]
function download [1/3]
function download [2/3]
MUDA_HOST Memory & muda::Memory::download (
void * dst,
size_t dst_pitch,
const void * src,
size_t src_pitch,
size_t width_bytes,
size_t height
)
function download [3/3]
function free [1/2]
function free [2/2]
MUDA_HOST Memory & muda::Memory::free (
cudaPitchedPtr pitched_ptr,
bool async=DEFAULT_ASYNC_ALLOC_FREE
)
function set [1/3]
function set [2/3]
MUDA_HOST Memory & muda::Memory::set (
void * data,
size_t pitch,
size_t width_bytes,
size_t height,
char value=0
)
function set [3/3]
MUDA_HOST Memory & muda::Memory::set (
cudaPitchedPtr pitched_ptr,
cudaExtent extent,
char value=0
)
function transfer [1/3]
function transfer [2/3]
MUDA_HOST Memory & muda::Memory::transfer (
void * dst,
size_t dst_pitch,
const void * src,
size_t src_pitch,
size_t width_bytes,
size_t height
)
function transfer [3/3]
function upload [1/3]
function upload [2/3]
MUDA_HOST Memory & muda::Memory::upload (
void * dst,
size_t dst_pitch,
const void * src,
size_t src_pitch,
size_t width_bytes,
size_t height
)
function upload [3/3]
The documentation for this class was generated from the following file src/muda/launch/memory.h