7 #ifndef WARPX_amrex_qed_wrapper_commons_h_
8 #define WARPX_amrex_qed_wrapper_commons_h_
31 #define PXRMP_WITH_GPU
32 #define PXRMP_GPU_QUALIFIER AMREX_GPU_HOST_DEVICE
42 #define PXRMP_RESTRICT AMREX_RESTRICT
43 #define PXRMP_FORCE_INLINE AMREX_FORCE_INLINE
56 template <
typename Real>
59 using HV = std::vector<Real>;
70 template<
typename... Args>
81 m_device_data.resize(this->
size());
83 this->
begin(), this->end(), m_device_data.begin());
94 const Real*
data()
const
96 return m_device_data.data();
104 template <
typename Real>
std::vector< Real > PicsarQedVector
Definition: QedWrapperCommons.H:105
static void streamSynchronize() noexcept
void copyAsync(HostToDevice, InIter begin, InIter end, OutIter result) noexcept
static constexpr HostToDevice hostToDevice
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 begin(Box const &box) noexcept
int size
Definition: plot_parallel.py:246
data
Definition: run_alltests_1node.py:325
args
Definition: stencil.py:413