Reference documentation for deal.II version 9.3.3
|
#include <deal.II/base/memory_space_data.h>
Public Member Functions | |
MemorySpaceData () | |
void | copy_to (Number *begin, std::size_t n_elements) |
void | copy_from (Number *begin, std::size_t n_elements) |
Public Attributes | |
std::unique_ptr< Number[], std::function< void(Number *)> > | values |
std::unique_ptr< Number[]> | values_dev |
std::vector< ArrayView< const Number > > | values_sm |
Data structure
Definition at line 38 of file memory_space_data.h.
|
inline |
Definition at line 40 of file memory_space_data.h.
|
inline |
Copy the active data (values for Host and values_dev for CUDA) to begin
. If the data is on the device it is moved to the host.
Definition at line 52 of file memory_space_data.h.
|
inline |
Copy the data in begin
to the active data of the structure (values for Host and values_dev for CUDA). The pointer begin
must be on the host.
Definition at line 63 of file memory_space_data.h.
std::unique_ptr<Number[], std::function<void(Number *)> > MemorySpace::MemorySpaceData< Number, MemorySpace >::values |
Pointer to data on the host.
Definition at line 72 of file memory_space_data.h.
std::unique_ptr<Number[]> MemorySpace::MemorySpaceData< Number, MemorySpace >::values_dev |
Pointer to data on the device.
Definition at line 77 of file memory_space_data.h.
std::vector<ArrayView<const Number> > MemorySpace::MemorySpaceData< Number, MemorySpace >::values_sm |
Pointers to the data of the processes sharing the same memory.
Definition at line 82 of file memory_space_data.h.