17 template <
typename Type>
20 Data(Type* _ptr,
size_t _n_elements) :
ptr(_ptr),
totalSize(_n_elements * sizeof(Type)) {}
Data< double > doubleData_t
Definition: data.hpp:41
Data< float > floatData_t
Definition: data.hpp:40
Definition: comm_utils.h:11
This is a helper wrapper around the multi-gpu data blocks owned by a worker. It's design is NOT final...
Definition: data.hpp:18
size_t totalSize
Definition: data.hpp:32
Data(Type *_ptr, size_t _n_elements)
Definition: data.hpp:20
Data()
Definition: data.hpp:19
size_t numElements() const
Definition: data.hpp:37
Type * ptr
Definition: data.hpp:26