Celeritas
0.5.0-86+4a8eea4
|
Copy spans of data. More...
#include <Copier.hh>
Public Member Functions | |
Copier (Span< T > dst) | |
Construct with the destination and the class's memspace. | |
Copier (Span< T > dst, StreamId stream) | |
Also construct with a stream ID to use for async copy. | |
void | operator() (MemSpace srcmem, Span< T const > src) const |
Copy data from the given source and memory space. | |
Copy spans of data.
The destination (which can be a reusable buffer) is the constructor argument, and the source of the data to copy is the function argument.
Example of copying data from device to host: