ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Casts memory between devices. More...
#include <memory.h>
Public Member Functions | |
void | operator() (T_out *arr_out, const T_in *arr_in, const size_t &size) |
Casts memory between devices. | |
Casts memory between devices.
This class casts memory between two different devices.
T_out | The output data type. |
T_in | The input data type. |
Device_out | The output device. |
Device_in | The input device. |
void container::kernels::cast_memory< T_out, T_in, Device_out, Device_in >::operator() | ( | T_out * | arr_out, |
const T_in * | arr_in, | ||
const size_t & | size | ||
) |
Casts memory between devices.
This method casts memory between two different devices.
dev_out | The output device. |
dev_in | The input device. |
arr_out | The output array. |
arr_in | The input array. |
size | The size of the array. |