aboutsummaryrefslogtreecommitdiff
path: root/Source/Filter/Filter.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-02-24 15:54:50 -0800
committerGravatar GitHub <noreply@github.com> 2020-02-24 15:54:50 -0800
commitbbefc3dad687f4370afd5bc85386d983201cb321 (patch)
treedbbff865cd72e16b87046685dfc25835f1d2573c /Source/Filter/Filter.cpp
parent8c3523a1054a0d7591cac951aa723f2b01c8e68d (diff)
downloadWarpX-bbefc3dad687f4370afd5bc85386d983201cb321.tar.gz
WarpX-bbefc3dad687f4370afd5bc85386d983201cb321.tar.zst
WarpX-bbefc3dad687f4370afd5bc85386d983201cb321.zip
Profiler wrapper to allow for cudaDeviceSynchronize (#738)
* add warpx profiler wrapper * call WX profiler wrapper instead of BL * EOL and cleaning * add doc on profile syncs * do not use PROFILE macros in .H files * replace WX_PROFILE with WARPX_PROFILE and use bool instead of int * typo * this file shouldn't be there
Diffstat (limited to 'Source/Filter/Filter.cpp')
-rw-r--r--Source/Filter/Filter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Filter/Filter.cpp b/Source/Filter/Filter.cpp
index dbe13747e..ed1aa383b 100644
--- a/Source/Filter/Filter.cpp
+++ b/Source/Filter/Filter.cpp
@@ -26,7 +26,7 @@ using namespace amrex;
void
Filter::ApplyStencil (MultiFab& dstmf, const MultiFab& srcmf, int scomp, int dcomp, int ncomp)
{
- BL_PROFILE("BilinearFilter::ApplyStencil(MultiFab)");
+ WARPX_PROFILE("BilinearFilter::ApplyStencil(MultiFab)");
ncomp = std::min(ncomp, srcmf.nComp());
for (MFIter mfi(dstmf); mfi.isValid(); ++mfi)
@@ -69,7 +69,7 @@ void
Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab,
const Box& tbx, int scomp, int dcomp, int ncomp)
{
- BL_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)");
+ WARPX_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)");
ncomp = std::min(ncomp, srcfab.nComp());
const auto& src = srcfab.array();
const auto& dst = dstfab.array();
@@ -153,7 +153,7 @@ void Filter::DoFilter (const Box& tbx,
void
Filter::ApplyStencil (amrex::MultiFab& dstmf, const amrex::MultiFab& srcmf, int scomp, int dcomp, int ncomp)
{
- BL_PROFILE("BilinearFilter::ApplyStencil()");
+ WARPX_PROFILE("BilinearFilter::ApplyStencil()");
ncomp = std::min(ncomp, srcmf.nComp());
#ifdef _OPENMP
#pragma omp parallel
@@ -189,7 +189,7 @@ void
Filter::ApplyStencil (amrex::FArrayBox& dstfab, const amrex::FArrayBox& srcfab,
const amrex::Box& tbx, int scomp, int dcomp, int ncomp)
{
- BL_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)");
+ WARPX_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)");
ncomp = std::min(ncomp, srcfab.nComp());
FArrayBox tmpfab;
const Box& gbx = amrex::grow(tbx,stencil_length_each_dir-1);