WarpX
Macros | Functions
WarpXProfilerWrapper.H File Reference
#include <AMReX_BLProfiler.H>
#include <AMReX_GpuDevice.H>

Go to the source code of this file.

Macros

#define WARPX_PROFILE(fname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE(fname)
 
#define WARPX_PROFILE_VAR(fname, vname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR(fname, vname)
 
#define WARPX_PROFILE_VAR_NS(fname, vname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_NS(fname, vname)
 
#define WARPX_PROFILE_VAR_START(vname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_START(vname)
 
#define WARPX_PROFILE_VAR_STOP(vname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_STOP(vname)
 
#define WARPX_PROFILE_REGION(rname)   doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_REGION(rname)
 

Functions

AMREX_FORCE_INLINE void doDeviceSynchronize (int do_device_synchronize)
 

Macro Definition Documentation

◆ WARPX_PROFILE

#define WARPX_PROFILE (   fname)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE(fname)

◆ WARPX_PROFILE_REGION

#define WARPX_PROFILE_REGION (   rname)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_REGION(rname)

◆ WARPX_PROFILE_VAR

#define WARPX_PROFILE_VAR (   fname,
  vname 
)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR(fname, vname)

◆ WARPX_PROFILE_VAR_NS

#define WARPX_PROFILE_VAR_NS (   fname,
  vname 
)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_NS(fname, vname)

◆ WARPX_PROFILE_VAR_START

#define WARPX_PROFILE_VAR_START (   vname)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_START(vname)

◆ WARPX_PROFILE_VAR_STOP

#define WARPX_PROFILE_VAR_STOP (   vname)    doDeviceSynchronize(WarpX::do_device_synchronize_before_profile); BL_PROFILE_VAR_STOP(vname)

Function Documentation

◆ doDeviceSynchronize()

AMREX_FORCE_INLINE void doDeviceSynchronize ( int  do_device_synchronize)