OmniSciDB  5ade3759e0
CudaUtils.h File Reference

Go to the source code of this file.

Namespaces

 CudaUtils
 

Functions

template<typename T >
void CudaUtils::allocGpuMem (T *&devMem, const std::size_t numElems, const std::size_t elemSize, const int gpuNum)
 
template<typename T >
void CudaUtils::allocPinnedHostMem (T *&hostMem, const std::size_t numElems, const std::size_t elemSize)
 
template<typename T >
void CudaUtils::copyToGpu (T *devMem, const T *hostMem, const std::size_t numElems, const std::size_t elemSize, const int gpuNum)
 
template<typename T >
void CudaUtils::copyToHost (T *hostMem, const T *devMem, const std::size_t numElems, const std::size_t elemSize, const int gpuNum)
 
template<typename T >
void CudaUtils::copyGpuToGpu (T *dstMem, const T *srcMem, const std::size_t numElems, const std::size_t elemSize, const int dstGpuNum)
 
template<typename T >
void CudaUtils::gpuFree (T *&devMem)
 
template<typename T >
void CudaUtils::hostFree (T *&hostMem)