diff options
author | 2020-02-24 15:54:50 -0800 | |
---|---|---|
committer | 2020-02-24 15:54:50 -0800 | |
commit | bbefc3dad687f4370afd5bc85386d983201cb321 (patch) | |
tree | dbbff865cd72e16b87046685dfc25835f1d2573c /Source/Parallelization/WarpXComm.cpp | |
parent | 8c3523a1054a0d7591cac951aa723f2b01c8e68d (diff) | |
download | WarpX-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/Parallelization/WarpXComm.cpp')
-rw-r--r-- | Source/Parallelization/WarpXComm.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp index fcc7343a6..550fdc825 100644 --- a/Source/Parallelization/WarpXComm.cpp +++ b/Source/Parallelization/WarpXComm.cpp @@ -59,7 +59,7 @@ WarpX::ExchangeWithPmlF (int lev) void WarpX::UpdateAuxilaryData () { - BL_PROFILE("UpdateAuxilaryData()"); + WARPX_PROFILE("UpdateAuxilaryData()"); if (Bfield_aux[0][0]->ixType() == Bfield_fp[0][0]->ixType()) { UpdateAuxilaryDataSameType(); @@ -550,7 +550,7 @@ WarpX::FillBoundaryAux (int lev, IntVect ng) void WarpX::SyncCurrent () { - BL_PROFILE("SyncCurrent()"); + WARPX_PROFILE("SyncCurrent()"); // Restrict fine patch current onto the coarse patch, before // summing the guard cells of the fine patch @@ -585,7 +585,7 @@ interpolateCurrentFineToCoarse ( std::array< amrex::MultiFab const *, 3 > const std::array< amrex::MultiFab *, 3 > const & coarse, int const refinement_ratio) { - BL_PROFILE("interpolateCurrentFineToCoarse()"); + WARPX_PROFILE("interpolateCurrentFineToCoarse()"); BL_ASSERT(refinement_ratio == 2); const IntVect& ng = (fine[0]->nGrowVect() + 1) / refinement_ratio; // add equivalent no. of guards to coarse patch @@ -617,7 +617,7 @@ interpolateCurrentFineToCoarse ( std::array< amrex::MultiFab const *, 3 > const void WarpX::SyncRho () { - BL_PROFILE("SyncRho()"); + WARPX_PROFILE("SyncRho()"); if (!rho_fp[0]) return; const int ncomp = rho_fp[0]->nComp(); @@ -643,7 +643,7 @@ WarpX::SyncRho () void interpolateDensityFineToCoarse (const MultiFab& fine, MultiFab& coarse, int const refinement_ratio) { - BL_PROFILE("interpolateDensityFineToCoarse()"); + WARPX_PROFILE("interpolateDensityFineToCoarse()"); BL_ASSERT(refinement_ratio == 2); const IntVect& ng = (fine.nGrowVect() + 1) / refinement_ratio; // add equivalent no. of guards to coarse patch const int nc = fine.nComp(); |