7#ifndef WARPX_amrex_qed_wrapper_commons_h_
8#define WARPX_amrex_qed_wrapper_commons_h_
32#define PXRMP_GPU_QUALIFIER AMREX_GPU_HOST_DEVICE
42#define PXRMP_RESTRICT AMREX_RESTRICT
43#define PXRMP_FORCE_INLINE AMREX_FORCE_INLINE
56template <
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();
104template <
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
PODVector< T, ArenaAllocator< T > > DeviceVector