Public Member Functions | Private Member Functions | Private Attributes

LibGeoDecomp::CUDARegion< DIM > Class Template Reference

Region is optimized for CPUs, CUDARegion is optimized for iteration on GPUs. More...

#include <cudaregion.h>

Collaboration diagram for LibGeoDecomp::CUDARegion< DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

template<typename REGION_TYPE >
 CUDARegion (const REGION_TYPE &region)
int * data ()
const int * data () const

Private Member Functions

void addCoord (std::vector< int > *coordsBuffer, const Coord< 1 > &c, std::size_t index, std::size_t stride) const
void addCoord (std::vector< int > *coordsBuffer, const Coord< 2 > &c, std::size_t index, std::size_t stride) const
void addCoord (std::vector< int > *coordsBuffer, const Coord< 3 > &c, std::size_t index, std::size_t stride) const

Private Attributes

CUDAArray< int > coords

Detailed Description

template<int DIM>
class LibGeoDecomp::CUDARegion< DIM >

Region is optimized for CPUs, CUDARegion is optimized for iteration on GPUs.

It does not implement the full Region functionality to avoid redundancy.


Constructor & Destructor Documentation

template<int DIM>
template<typename REGION_TYPE >
LibGeoDecomp::CUDARegion< DIM >::CUDARegion ( const REGION_TYPE &  region  )  [inline]

Member Function Documentation

template<int DIM>
void LibGeoDecomp::CUDARegion< DIM >::addCoord ( std::vector< int > *  coordsBuffer,
const Coord< 1 > &  c,
std::size_t  index,
std::size_t  stride 
) const [inline, private]
template<int DIM>
void LibGeoDecomp::CUDARegion< DIM >::addCoord ( std::vector< int > *  coordsBuffer,
const Coord< 3 > &  c,
std::size_t  index,
std::size_t  stride 
) const [inline, private]
template<int DIM>
void LibGeoDecomp::CUDARegion< DIM >::addCoord ( std::vector< int > *  coordsBuffer,
const Coord< 2 > &  c,
std::size_t  index,
std::size_t  stride 
) const [inline, private]
template<int DIM>
int* LibGeoDecomp::CUDARegion< DIM >::data (  )  [inline]
template<int DIM>
const int* LibGeoDecomp::CUDARegion< DIM >::data (  )  const [inline]

Member Data Documentation

template<int DIM>
CUDAArray<int> LibGeoDecomp::CUDARegion< DIM >::coords [private]

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