Namespaces | Defines | Functions
parallel_utils.h File Reference
#include "parallel_common.h"
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <vector>
#include <limits.h>
Include dependency graph for parallel_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  parallel_utils

Defines

#define align(offset)   alignOffset(offset,ParallelOptions::DEFAULTALIGN)
#define alignDefaultSize(offset)   alignSize(offset,ParallelOptions::DEFAULTALIGN)
#define alignedSize(a)   __alignedSize(a)
#define alignOffset(offset, alignment)   (offset) = alignSize(offset,alignment)
#define alignSize(offset, alignment)   (((offset) + (alignment) - 1) & ~ ((alignment) - 1))
#define COMPUTE_ERROR   0
#define IFBENCHMARKING(x)
#define IFTIMING(x)   ((void)0)
#define IFVERBOSE(x)   ((void)0)
#define VectorType   ::std::vector

Functions

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

Define Documentation

#define align (   offset)    alignOffset(offset,ParallelOptions::DEFAULTALIGN)

Definition at line 47 of file parallel_utils.h.

#define alignDefaultSize (   offset)    alignSize(offset,ParallelOptions::DEFAULTALIGN)

Definition at line 45 of file parallel_utils.h.

#define alignedSize (   a)    __alignedSize(a)

Definition at line 43 of file parallel_utils.h.

#define alignOffset (   offset,
  alignment 
)    (offset) = alignSize(offset,alignment)

Definition at line 46 of file parallel_utils.h.

#define alignSize (   offset,
  alignment 
)    (((offset) + (alignment) - 1) & ~ ((alignment) - 1))

Definition at line 44 of file parallel_utils.h.

#define COMPUTE_ERROR   0

Definition at line 38 of file parallel_utils.h.

#define IFBENCHMARKING (   x)

Definition at line 32 of file parallel_utils.h.

#define IFTIMING (   x)    ((void)0)

Definition at line 26 of file parallel_utils.h.

#define IFVERBOSE (   x)    ((void)0)

Definition at line 20 of file parallel_utils.h.

#define VectorType   ::std::vector

Definition at line 15 of file parallel_utils.h.



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