26 #ifndef MPBLOCKS_CUDA_WRAP_HPP_
27 #define MPBLOCKS_CUDA_WRAP_HPP_
37 cudaError_t result = cudaFuncGetAttributes(
this, (
void*)entry );
38 cudaEx(result) <<
"In cudaFuncGetAttributes";
72 (
const void*)src, spitchBytes,
73 widthObjs*
sizeof(T), height,
81 void memset( T* devPtr,
int value,
size_t nObs )
96 widthObjs*
sizeof(T), height );
void * malloc(size_t size)
wraps cudaMalloc
cudaMemcpyKind MemcpyKind
CudaExceptionStream cudaEx
T * mallocPitchT(size_t &pitch, size_t obsPerRow, size_t cols)
allocates nObjs objects of type T
T * mallocT(size_t nObjs)
allocates nObjs objects of type T
void memcpy2DT(T *dst, size_t dpitchBytes, const T *src, size_t spitchBytes, size_t widthObs, size_t height, MemcpyKind kind)
wraps cudaMemcpy2D
void memcpy2D(void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, MemcpyKind kind)
wraps cudaMemcpy2D
void memcpyT(T *dst, const T *src, size_t nObjs, MemcpyKind kind)
allocates nObjs objects of type T
void memset(void *devPtr, int value, size_t count)
wraps cudaMemset
void memset2DT(T *devPtr, size_t pitchBytes, int value, size_t widthObjs, size_t height)
wraps cudaMemset2D
void memcpy(void *dst, const void *src, size_t count, MemcpyKind kind)
wraps cudaMemcpy
void memset2D(void *devPtr, size_t pitch, int value, size_t width, size_t height)
wraps cudaMemset2D
void * mallocPitch(size_t &pitch, size_t cols, size_t rows)
wraps cudaMallocPitch