cheshirekow  v0.1.0
wrap.h File Reference
#include <map>

Go to the source code of this file.

Classes

struct  mpblocks::cuda::DeviceProp
 
struct  mpblocks::cuda::FuncAttributes
 

Namespaces

 mpblocks
 
 mpblocks::cuda
 

Typedefs

typedef std::map< std::string,
FuncAttributes > 
mpblocks::cuda::fattrMap_t
 print a formatted report about the specified kernels More...
 
typedef cudaMemcpyKind mpblocks::cuda::MemcpyKind
 

Functions

void mpblocks::cuda::checkLastError (const std::string &msg="checkLastError")
 wraps getLastError More...
 
void mpblocks::cuda::checkResult (cudaError_t result, const std::string &where)
 throws an exception if result is not success More...
 
void mpblocks::cuda::deviceSynchronize ()
 blocks the host thread until kernels are done executing More...
 
void mpblocks::cuda::free (void *devPtr)
 wraps cudaFree More...
 
int mpblocks::cuda::getDevice ()
 wraps cudaGetDevice More...
 
int mpblocks::cuda::getDeviceCount ()
 wraps cudaGetDeviceCount More...
 
template<class oiter >
void mpblocks::cuda::getDeviceList (oiter &out)
 build a list of device names More...
 
DeviceProp mpblocks::cuda::getDeviceProperties (int dev)
 wraps cudaGetDeviceProperties More...
 
void * mpblocks::cuda::malloc (size_t size)
 wraps cudaMalloc More...
 
void * mpblocks::cuda::mallocPitch (size_t &pitch, size_t cols, size_t rows)
 wraps cudaMallocPitch More...
 
template<typename T >
T * mpblocks::cuda::mallocPitchT (size_t &pitch, size_t obsPerRow, size_t cols)
 allocates nObjs objects of type T More...
 
template<typename T >
T * mpblocks::cuda::mallocT (size_t nObjs)
 allocates nObjs objects of type T More...
 
void mpblocks::cuda::memcpy (void *dst, const void *src, size_t count, MemcpyKind kind)
 wraps cudaMemcpy More...
 
void mpblocks::cuda::memcpy2D (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, MemcpyKind kind)
 wraps cudaMemcpy2D More...
 
template<typename T >
void mpblocks::cuda::memcpy2DT (T *dst, size_t dpitchBytes, const T *src, size_t spitchBytes, size_t widthObs, size_t height, MemcpyKind kind)
 wraps cudaMemcpy2D More...
 
template<typename T >
void mpblocks::cuda::memcpyT (T *dst, const T *src, size_t nObjs, MemcpyKind kind)
 allocates nObjs objects of type T More...
 
void mpblocks::cuda::memset (void *devPtr, int value, size_t count)
 wraps cudaMemset More...
 
template<typename T >
void mpblocks::cuda::memset (T *devPtr, int value, size_t nObs)
 wraps cudaMemset More...
 
void mpblocks::cuda::memset2D (void *devPtr, size_t pitch, int value, size_t width, size_t height)
 wraps cudaMemset2D More...
 
template<typename T >
void mpblocks::cuda::memset2DT (T *devPtr, size_t pitchBytes, int value, size_t widthObjs, size_t height)
 wraps cudaMemset2D More...
 
void mpblocks::cuda::printDeviceReport (std::ostream &out, int dev)
 print a formatted report about the specified device More...
 
void mpblocks::cuda::printDeviceReport (std::ostream &out)
 
void mpblocks::cuda::printKernelReport (std::ostream &out, const fattrMap_t &attr)
 
void mpblocks::cuda::setDevice (int dev)
 wraps cudaSetDevice More...
 

Detailed Description

Date
Aug 25, 2011
Author
Josh Bialkowski (jbial.nosp@m.k@mi.nosp@m.t.edu)

Definition in file wrap.h.