OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RowFetcher< I > Struct Template Reference

Public Member Functions

 RowFetcher (int8_t *out_base, const int8_t *in_base, const I *indices, const size_t row_sz)
 
__host__ __device__ void operator() (const I index)
 

Public Attributes

int8_t * dst_base
 
const int8_t * src_base
 
const I * idx_base
 
const size_t row_size
 

Detailed Description

template<class I>
struct RowFetcher< I >

Definition at line 265 of file TopKSort.cu.

Constructor & Destructor Documentation

template<class I >
RowFetcher< I >::RowFetcher ( int8_t *  out_base,
const int8_t *  in_base,
const I *  indices,
const size_t  row_sz 
)
inline

Definition at line 266 of file TopKSort.cu.

270  : dst_base(out_base), src_base(in_base), idx_base(indices), row_size(row_sz) {}
int8_t * dst_base
Definition: TopKSort.cu:275
const size_t row_size
Definition: TopKSort.cu:278
const int8_t * src_base
Definition: TopKSort.cu:276
const I * idx_base
Definition: TopKSort.cu:277

Member Function Documentation

template<class I >
__host__ __device__ void RowFetcher< I >::operator() ( const I  index)
inline

Definition at line 271 of file TopKSort.cu.

References RowFetcher< I >::dst_base, RowFetcher< I >::idx_base, RowFetcher< I >::row_size, and RowFetcher< I >::src_base.

271  {
272  memcpy(dst_base + index * row_size, src_base + idx_base[index] * row_size, row_size);
273  }
int8_t * dst_base
Definition: TopKSort.cu:275
const size_t row_size
Definition: TopKSort.cu:278
const int8_t * src_base
Definition: TopKSort.cu:276
const I * idx_base
Definition: TopKSort.cu:277

Member Data Documentation

template<class I >
int8_t* RowFetcher< I >::dst_base

Definition at line 275 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const I* RowFetcher< I >::idx_base

Definition at line 277 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const size_t RowFetcher< I >::row_size

Definition at line 278 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const int8_t* RowFetcher< I >::src_base

Definition at line 276 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().


The documentation for this struct was generated from the following file: