WarpX
Macros | Typedefs
QedWrapperCommons.H File Reference
#include <AMReX_AmrCore.H>
#include <AMReX_Extension.H>
#include <AMReX_GpuDevice.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_Vector.H>
#include <vector>

Go to the source code of this file.

Macros

#define PXRMP_WITH_GPU
 
#define PXRMP_GPU_QUALIFIER   AMREX_GPU_HOST_DEVICE
 
#define PXRMP_RESTRICT   AMREX_RESTRICT
 
#define PXRMP_FORCE_INLINE   AMREX_FORCE_INLINE
 

Typedefs

template<typename Real >
using PicsarQedVector = std::vector< Real >
 

Macro Definition Documentation

◆ PXRMP_FORCE_INLINE

#define PXRMP_FORCE_INLINE   AMREX_FORCE_INLINE

◆ PXRMP_GPU_QUALIFIER

#define PXRMP_GPU_QUALIFIER   AMREX_GPU_HOST_DEVICE

◆ PXRMP_RESTRICT

#define PXRMP_RESTRICT   AMREX_RESTRICT

PICSAR uses internally some specifiers analogous to AMREX_RESTRICT and AMREX_FORCE_INLINE. These definitions set the aforementioned specifiers to AMREX_RESTRICT and AMREX_FORCE_INLINE.

◆ PXRMP_WITH_GPU

#define PXRMP_WITH_GPU

PICSAR uses PXRMP_GPU to decorate methods which should be compiled for GPU. The user has to set it to the right value (AMREX_GPU_DEVICE in this case).

Typedef Documentation

◆ PicsarQedVector

template<typename Real >
using PicsarQedVector = std::vector<Real>