OmniSciDB  04ee39c94c
CudaUtils Namespace Reference

Functions

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

Function Documentation

◆ allocGpuMem()

template<typename T >
void CudaUtils::allocGpuMem ( T *&  devMem,
const std::size_t  numElems,
const std::size_t  elemSize,
const int  gpuNum 
)

◆ allocPinnedHostMem()

template<typename T >
void CudaUtils::allocPinnedHostMem ( T *&  hostMem,
const std::size_t  numElems,
const std::size_t  elemSize 
)

◆ copyGpuToGpu()

template<typename T >
void CudaUtils::copyGpuToGpu ( T *  dstMem,
const T *  srcMem,
const std::size_t  numElems,
const std::size_t  elemSize,
const int  dstGpuNum 
)

◆ copyToGpu()

template<typename T >
void CudaUtils::copyToGpu ( T *  devMem,
const T *  hostMem,
const std::size_t  numElems,
const std::size_t  elemSize,
const int  gpuNum 
)

◆ copyToHost()

template<typename T >
void CudaUtils::copyToHost ( T *  hostMem,
const T *  devMem,
const std::size_t  numElems,
const std::size_t  elemSize,
const int  gpuNum 
)

◆ gpuFree()

template<typename T >
void CudaUtils::gpuFree ( T *&  devMem)

◆ hostFree()

template<typename T >
void CudaUtils::hostFree ( T *&  hostMem)