bnmf-algs
Namespaces | Functions
copy.hpp File Reference

Go to the source code of this file.

Namespaces

 bnmf_algs
 Main namespace for bnmf-algs library.
 
 bnmf_algs::cuda
 cuda namespace contains functions that operate on nvidia GPUs using CUDA routines.
 

Functions

template<typename DstMemory , typename SrcMemory , template< typename > class HostMemoryBase, template< typename > class DeviceMemoryBase>
constexpr cudaMemcpyKind bnmf_algs::cuda::infer_copy_kind ()
 Infer the value of cudaMemcpyKind enum to be used with CUDA copying functions from the types of the memory objects passed to copy1D, copy2D, copy3D. More...
 
template<typename DstMemory1D , typename SrcMemory1D >
void bnmf_algs::cuda::copy1D (DstMemory1D &destination, const SrcMemory1D &source)
 Copy a contiguous 1D memory from a host/device memory to a host/device memory using CUDA function cudaMemcpy. More...
 
template<typename DstPitchedMemory2D , typename SrcPitchedMemory2D >
void bnmf_algs::cuda::copy2D (DstPitchedMemory2D &destination, const SrcPitchedMemory2D &source)
 Copy a contiguous 2D pitched memory from a host/device memory to a host/device memory using CUDA function cudaMemcpy2D. More...
 
template<typename DstPitchedMemory3D , typename SrcPitchedMemory3D >
void bnmf_algs::cuda::copy3D (DstPitchedMemory3D &destination, const SrcPitchedMemory3D &source)
 Copy a contiguous 3D pitched memory from a host/device memory to a host/device memory using CUDA function cudaMemcpy3D. More...