aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/KernelTimer.H
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-12-16 00:17:04 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-16 08:17:04 +0000
commit03ebb25b8d417dc8c02356b620403c548021db7f (patch)
tree019528fa83a379c4bf5877a9c265b236a97cb5d8 /Source/Parallelization/KernelTimer.H
parent2a24ba13c214b3e4345529deecf627d6d113004e (diff)
downloadWarpX-03ebb25b8d417dc8c02356b620403c548021db7f.tar.gz
WarpX-03ebb25b8d417dc8c02356b620403c548021db7f.tar.zst
WarpX-03ebb25b8d417dc8c02356b620403c548021db7f.zip
Doxygen: Fix Diags, FieldSolver, Parallelization & Particles (#2662)
* Doxygen: Fix Diags, FieldSolver, Parallelization & Particles * Apply suggestions: Remi Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> * Apply suggestions: Roelof Co-authored-by: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> * Apply suggestions: Luca Co-authored-by: Luca Fedeli <luca.fedeli@for.unipi.it> * Apply suggestions: Edoardo Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Apply suggestions: Andrew * Apply suggestions: Edoardo Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Apply suggestions: Neil Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Apply suggestions: Roelof * Apply suggestions: Weiqun Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov> Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> Co-authored-by: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Co-authored-by: Luca Fedeli <luca.fedeli@for.unipi.it> Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
Diffstat (limited to 'Source/Parallelization/KernelTimer.H')
-rw-r--r--Source/Parallelization/KernelTimer.H7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Parallelization/KernelTimer.H b/Source/Parallelization/KernelTimer.H
index 9166ecb5f..137bbb99d 100644
--- a/Source/Parallelization/KernelTimer.H
+++ b/Source/Parallelization/KernelTimer.H
@@ -9,6 +9,9 @@
#include "WarpX.H"
+#include <AMReX.H>
+#include <AMReX_REAL.H>
+
// #ifdef WARPX_USE_GPUCLOCK
#include <climits>
@@ -30,7 +33,7 @@ public:
(const bool do_timing, amrex::Real* cost)
: m_do_timing(do_timing)
#else
- (const bool, amrex::Real*)
+ (const bool do_timing, amrex::Real* cost)
#endif
{
#if (defined AMREX_USE_GPU)
@@ -51,6 +54,8 @@ public:
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( m_do_timing == false,
"`algo.load_balance_costs_update = gpuclock` requires to compile with `-DWarpX_GPUCLOCK=ON`.");
# endif // WARPX_USE_GPUCLOCK
+#else // AMREX_USE_GPU
+ amrex::ignore_unused(do_timing, cost);
#endif // AMREX_USE_GPU
}