TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
Provides a generic memcpy and memcpy2D function for different address spaces.
Definition in file memcpy.hpp.
Go to the source code of this file.
Functions | |
template<AddressSpace DestAdrSp, AddressSpace SrcAdrSp> | |
void | nda::mem::memcpy (void *dest, void const *src, size_t count) |
Call the correct memcpy function based on the given address spaces. | |
template<AddressSpace DestAdrSp, AddressSpace SrcAdrSp> | |
void | nda::mem::memcpy2D (void *dest, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height) |
Call CUDA's cudaMemcpy2D function or simulate its behavior on the Host based on the given address spaces. | |