cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
Device to Host Operators

Operators for transferring data from device to host memory. More...

Functions

template<typename T_Scalar>
void operator>> (const culite::dns::XiVector< T_Scalar > &src, cla3p::dns::XiVector< typename culite::TypeTraits< T_Scalar >::cla3p_type > &dest)
 Copies the contents of src to dest.
template<typename T_Scalar>
void operator>> (const culite::dns::XxMatrix< T_Scalar > &src, cla3p::dns::XxMatrix< typename culite::TypeTraits< T_Scalar >::cla3p_type > &dest)
 Copies the contents of src to dest.

Detailed Description

Operators for transferring data from device to host memory.

Provides overloaded operators and utility functions for copying data from GPU memory back to CPU memory. These operators enable retrieval of computation results with support for both blocking and non-blocking transfers.

Function Documentation

◆ operator>>() [1/2]

template<typename T_Scalar>
void operator>> ( const culite::dns::XiVector< T_Scalar > & src,
cla3p::dns::XiVector< typename culite::TypeTraits< T_Scalar >::cla3p_type > & dest )

Copies the contents of src to dest.

Performs a device-to-host copy from src to dest. If dest is empty, it is resized to match src, otherwise it must be compatible with src.

Template Parameters
T_ScalarThe scalar type (e.g., float, double, complex).
Parameters
[in]srcThe source device vector.
[out]destThe destination host vector.

◆ operator>>() [2/2]

template<typename T_Scalar>
void operator>> ( const culite::dns::XxMatrix< T_Scalar > & src,
cla3p::dns::XxMatrix< typename culite::TypeTraits< T_Scalar >::cla3p_type > & dest )

Copies the contents of src to dest.

Performs a device-to-host copy from src to dest. If dest is empty, it is resized to match src, otherwise it must be compatible with src.

Template Parameters
T_ScalarThe scalar type (e.g., float, double, complex).
Parameters
[in]srcThe source device matrix.
[out]destThe destination host matrix.