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>
109 #endif //WARPX_amrex_qed_wrapper_commons_h_
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 begin(Box const &box) noexcept
data
Definition: run_alltests_1node.py:325
static constexpr HostToDevice hostToDevice
int size
Definition: plot_parallel.py:246
std::vector< Real > PicsarQedVector
Definition: QedWrapperCommons.H:105
args
Definition: run_alltests.py:127
void copyAsync(HostToDevice, InIter begin, InIter end, OutIter result) noexcept
static void streamSynchronize() noexcept