Reference documentation for deal.II version 9.1.1
|
#include <deal.II/base/memory_space.h>
Public Member Functions | |
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[], decltype(&free)> | values |
std::unique_ptr< Number[]> | values_dev |
Data structure
Definition at line 54 of file memory_space.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 68 of file memory_space.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 79 of file memory_space.h.
std::unique_ptr<Number[], decltype(&free)> MemorySpace::MemorySpaceData< Number, MemorySpace >::values |
Pointer to data on the host.
Definition at line 88 of file memory_space.h.
std::unique_ptr<Number[]> MemorySpace::MemorySpaceData< Number, MemorySpace >::values_dev |
Pointer to data on the device.
Definition at line 93 of file memory_space.h.