Namespaces | Classes | Typedefs | Functions
parallel_utils Namespace Reference

Namespaces

namespace  ArrayTypes
namespace  CopyTypes

Classes

struct  MemManager
class  ParallelArray
 Encapsulates allocation/deallocation and access to arrays on both the host and device. More...
class  ParallelHDArray
 Wraps both a host and device ParallArray and exposes methods for synchronizing between the two. More...

Typedefs

typedef ArrayTypes::ArrayType ArrayType
typedef CopyTypes::CopyType CopyType

Functions

int __alignedSize (VectorType< int > &vectorToAlign)
template<typename T >
int computeElementsPerAlign (int align)
void computeGridSize (int n, int blockSize, int &numBlocks, int &numThreads)
int computeStride (int n, int blockSize)
template<typename T >
void fillSequentialVector (VectorType< T > &vectorToFill)
template<typename T >
void fillStridedVector (VectorType< T > &vectorToFill, T stride)
int iDivUp (int a, int b)
template<typename T >
iPower2Up (T k)
unsigned int iPower2UpUnrolled (unsigned int v)
template<typename T >
iPower2UpUnsigned (T k)
template<typename T >
static T offsetBuffer (T buffer, ArraySize offset)
template<typename T >
void permuteVector (VectorType< T > &vectorToPermute)
void printIntVector (const IntVector &intVector)

Typedef Documentation

Definition at line 18 of file parallel_array.h.

Definition at line 13 of file parallel_memory.h.


Function Documentation

int parallel_utils::__alignedSize ( VectorType< int > &  vectorToAlign) [inline]

Definition at line 51 of file parallel_utils.h.

template<typename T >
int parallel_utils::computeElementsPerAlign ( int  align) [inline]

Definition at line 79 of file parallel_utils.h.

void parallel_utils::computeGridSize ( int  n,
int  blockSize,
int &  numBlocks,
int &  numThreads 
) [inline]

Definition at line 67 of file parallel_utils.h.

int parallel_utils::computeStride ( int  n,
int  blockSize 
) [inline]

Definition at line 73 of file parallel_utils.h.

template<typename T >
void parallel_utils::fillSequentialVector ( VectorType< T > &  vectorToFill) [inline]

Definition at line 104 of file parallel_utils.h.

template<typename T >
void parallel_utils::fillStridedVector ( VectorType< T > &  vectorToFill,
stride 
) [inline]

Definition at line 111 of file parallel_utils.h.

int parallel_utils::iDivUp ( int  a,
int  b 
) [inline]

Definition at line 62 of file parallel_utils.h.

template<typename T >
T parallel_utils::iPower2Up ( k) [inline]

Definition at line 85 of file parallel_utils.h.

unsigned int parallel_utils::iPower2UpUnrolled ( unsigned int  v) [inline]

Definition at line 129 of file parallel_utils.h.

template<typename T >
T parallel_utils::iPower2UpUnsigned ( k) [inline]

Definition at line 94 of file parallel_utils.h.

template<typename T >
static T parallel_utils::offsetBuffer ( buffer,
ArraySize  offset 
) [static]

Definition at line 16 of file parallel_memory.h.

template<typename T >
void parallel_utils::permuteVector ( VectorType< T > &  vectorToPermute) [inline]

Definition at line 118 of file parallel_utils.h.

void parallel_utils::printIntVector ( const IntVector intVector) [inline]

Definition at line 140 of file parallel_utils.h.



parallel_quickstep
Author(s): Jared Duke
autogenerated on Fri Jan 3 2014 11:36:56