10 MUDA_HOST
Memory(cudaStream_t stream =
nullptr)
15 MUDA_HOST
Memory& alloc_1d(T** ptr,
size_t byte_size,
bool async = DEFAULT_ASYNC_ALLOC_FREE);
17 MUDA_HOST
Memory& alloc(T** ptr,
size_t byte_size,
bool async = DEFAULT_ASYNC_ALLOC_FREE);
18 MUDA_HOST
Memory& free(
void* ptr,
bool async = DEFAULT_ASYNC_ALLOC_FREE);
19 MUDA_HOST
Memory& copy(
void* dst,
const void* src,
size_t byte_size, cudaMemcpyKind kind);
20 MUDA_HOST
Memory& transfer(
void* dst,
const void* src,
size_t byte_size);
21 MUDA_HOST
Memory& download(
void* dst,
const void* src,
size_t byte_size);
22 MUDA_HOST
Memory& upload(
void* dst,
const void* src,
size_t byte_size);
23 MUDA_HOST
Memory& set(
void* data,
size_t byte_size,
char value = 0);
27 MUDA_HOST
Memory& alloc_2d(T** ptr,
31 bool async = DEFAULT_ASYNC_ALLOC_FREE);
33 MUDA_HOST
Memory& alloc(T** ptr,
37 bool async = DEFAULT_ASYNC_ALLOC_FREE);
38 MUDA_HOST
Memory& copy(
void* dst,
45 MUDA_HOST
Memory& transfer(
void* dst,
51 MUDA_HOST
Memory& download(
void* dst,
57 MUDA_HOST
Memory& upload(
void* dst,
63 MUDA_HOST
Memory& set(
void* data,
size_t pitch,
size_t width_bytes,
size_t height,
char value = 0);
66 MUDA_HOST
Memory& alloc_3d(cudaPitchedPtr* pitched_ptr,
67 const cudaExtent& extent,
68 bool async = DEFAULT_ASYNC_ALLOC_FREE);
69 MUDA_HOST
Memory& alloc(cudaPitchedPtr* pitched_ptr,
70 const cudaExtent& extent,
71 bool async = DEFAULT_ASYNC_ALLOC_FREE);
72 MUDA_HOST
Memory& free(cudaPitchedPtr pitched_ptr,
bool async = DEFAULT_ASYNC_ALLOC_FREE);
73 MUDA_HOST
Memory& copy(
const cudaMemcpy3DParms& parms);
74 MUDA_HOST
Memory& transfer(cudaMemcpy3DParms parms);
75 MUDA_HOST
Memory& download(cudaMemcpy3DParms parms);
76 MUDA_HOST
Memory& upload(cudaMemcpy3DParms parms);
77 MUDA_HOST
Memory& set(cudaPitchedPtr pitched_ptr, cudaExtent extent,
char value = 0);