buffer.h
Go to the documentation of this file.
65 friend parsec_data_t* detail::get_parsec_data<T, Allocator>(const ttg_parsec::Buffer<T, Allocator>&);
146 //std::cout << "buffer " << this << " other " << &db << " mv op ttg_copy " << m_ttg_copy << std::endl;
333 /* only set device if the host has the latest copy as otherwise we might end up with a stale copy */
ttg::device::Device parsec_device_to_ttg_device(int parsec_id)
Definition: device.h:30
int ttg_device_to_parsec_device(const ttg::device::Device &device)
Definition: device.h:18
parsec_data_t * get_parsec_data(const ttg_parsec::Buffer< T, A > &db)
Definition: buffer.h:393
Definition: iovec.h:11
Definition: buffer.h:41
void prefer_device(ttg::device::Device dev)
Definition: buffer.h:332
void set_current_device(const ttg::device::Device &device)
Definition: buffer.h:162
bool is_valid_on(const ttg::device::Device &device) const
Definition: buffer.h:231
element_type * device_ptr_on(const ttg::device::Device &device)
Definition: buffer.h:209
Buffer(const Buffer &db)=delete
ttg::device::Device get_owner_device() const
Definition: buffer.h:174
Buffer & operator=(const Buffer &db)=delete
std::allocator_traits< Allocator > allocator_traits
Definition: buffer.h:45
void allocate_on(const ttg::device::Device &device_id)
Definition: buffer.h:237
typename allocator_traits::allocator_type allocator_type
Definition: buffer.h:46
const element_type * device_ptr_on(const ttg::device::Device &device) const
Definition: buffer.h:217
const element_type * owner_device_ptr() const
Definition: buffer.h:202
const element_type * current_device_ptr() const
Definition: buffer.h:187
void iovec_add(const ttg::iovec &iov)
Definition: ttg_data_copy.h:413
void reset_parsec_data(void *ptr, size_t size)
Definition: ttg_data_copy.h:531
ttg_parsec_data_wrapper_t()
Definition: ttg_data_copy.h:542
ttg_data_copy_t * m_ttg_copy
Definition: ttg_data_copy.h:35
parsec_data_ptr m_data
Definition: ttg_data_copy.h:36
parsec_data_t * parsec_data()
Definition: ttg_data_copy.h:49
Definition: ptr.h:15