ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Synchronizes memory between devices. More...
#include <memory.h>
Public Member Functions | |
void | operator() (T *arr_out, const T *arr_in, const size_t &size) |
Synchronizes memory between devices. | |
Synchronizes memory between devices.
This class synchronizes memory between two different devices.
T | The type of data in the arrays. |
Device_out | The output device. |
Device_in | The input device. |
void container::kernels::synchronize_memory< T, Device_out, Device_in >::operator() | ( | T * | arr_out, |
const T * | arr_in, | ||
const size_t & | size | ||
) |
Synchronizes memory between devices.
This method synchronizes 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. |