copy_bytes#
-
template<typename _SrcTy, typename _DstTy>
inline void cuda::copy_bytes( - stream_ref __stream,
- _SrcTy &&__src,
- _DstTy &&__dst,
- copy_configuration __config = {}
Launches a bytewise memory copy from source to destination into the provided stream.
Both source and destination needs to be a
contiguous_rangeand convert tocuda::std::span. The element types of both the source and destination range is required to be trivially copyable.This call might be synchronous if either source or destination is pagable host memory. It will be synchronous if both destination and copy is located in host memory.
Both source and destination needs to be an instance of
cuda::std::mdspan. They can also convert tocuda::std::mdspan, but the type needs to containmdspantemplate arguments as member aliases namedvalue_type,extents_type,layout_typeandaccessor_type. The resulting mdspan is required to be exhaustive. The element types of both the source and destination type are required to be trivially copyable.This call might be synchronous if either source or destination is pagable host memory. It will be synchronous if both destination and copy is located in host memory.
- Parameters:
__stream – Stream that the copy should be inserted into
__src – Source to copy from
__dst – Destination to copy into
__config – Configuration for the copy
__stream – Stream that the copy should be inserted into
__src – Source to copy from
__dst – Destination to copy into
__config – Configuration for the copy