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

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

Functions

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

Detailed Description

Operators for transferring data from host to device memory.

Provides overloaded operators and utility functions for copying data from CPU memory to GPU memory. These operators support both synchronous and asynchronous transfers using CUDA streams for efficient data movement.

Function Documentation

◆ operator>>() [1/2]

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

Copies the contents of src to dest.

Performs a host-to-device 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 host vector.
[out]destThe destination device vector.

◆ operator>>() [2/2]

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

Copies the contents of src to dest.

Performs a host-to-device 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 host matrix.
[out]destThe destination device matrix.