WarpX
Macros
QedWrapperCommons.H File Reference
#include <AMReX_AmrCore.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_Extension.H>

Go to the source code of this file.

Macros

#define PXRMP_GPU   AMREX_GPU_HOST_DEVICE
 
#define PXRMP_RESTRICT   AMREX_RESTRICT
 
#define PXRMP_FORCE_INLINE   AMREX_FORCE_INLINE
 

Macro Definition Documentation

◆ PXRMP_FORCE_INLINE

#define PXRMP_FORCE_INLINE   AMREX_FORCE_INLINE

◆ PXRMP_GPU

#define PXRMP_GPU   AMREX_GPU_HOST_DEVICE

This header contains some common #define directives used by the QED library wrappers and related components. 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).

◆ PXRMP_RESTRICT

#define PXRMP_RESTRICT   AMREX_RESTRICT

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