Skip to content

Commit

Permalink
Programmable Element: Profile pc Push (#518)
Browse files Browse the repository at this point in the history
If he `m_push` member is overwritten by the user, then
we do not call into `push_all` and thus do not add
element-wise profiling to the `Programmable` element yet.

This adds profiling for this case, which is then reflected
in the tiny profiler as well as NVTX range marks.
  • Loading branch information
ax3l authored Feb 3, 2024
1 parent 4294e57 commit 84226b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/particles/elements/Programmable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "Programmable.H"
#include "particles/PushAll.H"

#include <AMReX_BLProfiler.H>


namespace impactx
{
Expand All @@ -25,6 +27,7 @@ namespace impactx
push_all(pc, *this, step, m_threadsafe);
}
else {
BL_PROFILE("impactx::Push::Programmable");
m_push(&pc, step);
}
}
Expand Down

0 comments on commit 84226b1

Please sign in to comment.