this class provides wrappers to the generic carma host object
More...
#include <carma_host_obj.h>
|
| CarmaHostObj () |
|
| CarmaHostObj (const long *dims_data) |
|
| CarmaHostObj (const std::vector< long > &dims) |
|
| CarmaHostObj (const long *dims_data, MemAlloc malloc_type) |
|
| CarmaHostObj (const CarmaHostObj< T_data > *obj) |
|
| CarmaHostObj (const CarmaHostObj< T_data > *obj, MemAlloc malloc_type) |
|
| CarmaHostObj (const long *dims_data, const T_data *data) |
|
| CarmaHostObj (const long *dims_data, const T_data *data, MemAlloc malloc_type) |
|
| CarmaHostObj (const long *dims_data, int nb_streams) |
|
| CarmaHostObj (const long *dims_data, MemAlloc malloc_type, int nb_streams) |
|
| CarmaHostObj (const CarmaHostObj< T_data > *obj, int nb_streams) |
|
| CarmaHostObj (const CarmaHostObj< T_data > *obj, MemAlloc malloc_type, int nb_streams) |
|
| CarmaHostObj (const long *dims_data, const T_data *data, int nb_streams) |
|
| CarmaHostObj (const long *dims_data, const T_data *data, MemAlloc malloc_type, int nb_streams) |
|
| ~CarmaHostObj () |
|
void | get_devpntr (void **pntr_dev) |
|
int | get_nb_streams () |
|
int | add_stream () |
|
int | add_stream (int nb) |
|
int | del_stream () |
|
int | del_stream (int nb) |
|
cudaStream_t | get_cuda_stream (int stream) |
|
int | wait_stream (int stream) |
|
int | wait_all_streams () |
|
int | cpy_obj (CarmaObj< T_data > *carma_obj, cudaMemcpyKind flag) |
|
int | cpy_obj (CarmaObj< T_data > *carma_obj, cudaMemcpyKind flag, unsigned int stream) |
|
T_data & | operator[] (long idx) |
|
const T_data & | operator[] (long idx) const |
|
| operator T_data * () |
|
| operator std::string () |
|
T_data * | get_data () |
|
T_data * | get_data_at (int index) |
|
const long * | get_dims () |
|
long | get_dims (int i) |
|
int | get_nb_elements () |
|
int | fill_from (const T_data *data) |
|
int | fill_into (T_data *data) |
|
int | fill (T_data value) |
|
std::string | get_mem_alloc () |
|
template<class T_data>
class CarmaHostObj< T_data >
this class provides wrappers to the generic carma host object
- Author
- COMPASS Team https://github.com/ANR-COMPASS
- Version
- 5.4.4
- Date
- 2022/01/24
Definition at line 43 of file carma_host_obj.h.
◆ CarmaHostObj() [1/14]
◆ CarmaHostObj() [2/14]
◆ CarmaHostObj() [3/14]
◆ CarmaHostObj() [4/14]
◆ CarmaHostObj() [5/14]
◆ CarmaHostObj() [6/14]
◆ CarmaHostObj() [7/14]
◆ CarmaHostObj() [8/14]
◆ CarmaHostObj() [9/14]
◆ CarmaHostObj() [10/14]
◆ CarmaHostObj() [11/14]
◆ CarmaHostObj() [12/14]
◆ CarmaHostObj() [13/14]
◆ CarmaHostObj() [14/14]
◆ ~CarmaHostObj()
◆ add_stream() [1/2]
◆ add_stream() [2/2]
◆ cpy_obj() [1/2]
◆ cpy_obj() [2/2]
template<class T_data >
int CarmaHostObj< T_data >::cpy_obj |
( |
CarmaObj< T_data > * |
carma_obj, |
|
|
cudaMemcpyKind |
flag, |
|
|
unsigned int |
stream |
|
) |
| |
◆ del_stream() [1/2]
◆ del_stream() [2/2]
◆ fill()
◆ fill_from()
template<class T_data >
int CarmaHostObj< T_data >::fill_from |
( |
const T_data * |
data | ) |
|
◆ fill_into()
◆ get_cuda_stream()
template<class T_data >
cudaStream_t CarmaHostObj< T_data >::get_cuda_stream |
( |
int |
stream | ) |
|
◆ get_data()
◆ get_data_at()
◆ get_devpntr()
template<class T_data >
void CarmaHostObj< T_data >::get_devpntr |
( |
void ** |
pntr_dev | ) |
|
◆ get_dims() [1/2]
◆ get_dims() [2/2]
◆ get_mem_alloc()
◆ get_nb_elements()
◆ get_nb_streams()
◆ init()
template<class T_data >
void CarmaHostObj< T_data >::init |
( |
const long * |
dims_data, |
|
|
const T_data * |
data, |
|
|
MemAlloc |
malloc_type, |
|
|
int |
nb_streams |
|
) |
| |
|
protected |
◆ operator std::string()
◆ operator T_data *()
◆ operator[]() [1/2]
◆ operator[]() [2/2]
template<class T_data >
const T_data& CarmaHostObj< T_data >::operator[] |
( |
long |
idx | ) |
const |
◆ wait_all_streams()
◆ wait_stream()
◆ data_UA
unpadded input dara for generic pinned mem
Definition at line 46 of file carma_host_obj.h.
◆ dims_data
◆ h_data
◆ malloc_type
◆ nb_elem
◆ streams
The documentation for this class was generated from the following file: