diff options
Diffstat (limited to 'Source/Particles/Deposition/CurrentDeposition.H')
-rw-r--r-- | Source/Particles/Deposition/CurrentDeposition.H | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H index ccc27ca96..8a3aae004 100644 --- a/Source/Particles/Deposition/CurrentDeposition.H +++ b/Source/Particles/Deposition/CurrentDeposition.H @@ -8,7 +8,7 @@ #ifndef CURRENTDEPOSITION_H_ #define CURRENTDEPOSITION_H_ -#include "Parallelization/KernelTimer.H" +#include "ablastr/parallelization/KernelTimer.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpXAlgorithmSelection.H" @@ -125,8 +125,9 @@ void doDepositionShapeN(const GetParticlePosition& GetPosition, np_to_depose, [=] AMREX_GPU_DEVICE (long ip) { #if defined(WARPX_USE_GPUCLOCK) - KernelTimer kernelTimer(cost && load_balance_costs_update_algo - == LoadBalanceCostsUpdateAlgo::GpuClock, cost_real); + const auto KernelTimer = ablastr::parallelization::KernelTimer( + cost && (load_balance_costs_update_algo == LoadBalanceCostsUpdateAlgo::GpuClock), + cost_real); #endif // --- Get particle quantities @@ -441,8 +442,9 @@ void doEsirkepovDepositionShapeN (const GetParticlePosition& GetPosition, np_to_depose, [=] AMREX_GPU_DEVICE (long const ip) { #if defined(WARPX_USE_GPUCLOCK) - KernelTimer kernelTimer(cost && load_balance_costs_update_algo - == LoadBalanceCostsUpdateAlgo::GpuClock, cost_real); + const auto KernelTimer = ablastr::parallelization::KernelTimer( + cost && (load_balance_costs_update_algo == LoadBalanceCostsUpdateAlgo::GpuClock), + cost_real); #endif // --- Get particle quantities @@ -836,8 +838,9 @@ void doVayDepositionShapeN (const GetParticlePosition& GetPosition, amrex::ParallelFor(np_to_depose, [=] AMREX_GPU_DEVICE (long ip) { #if defined(WARPX_USE_GPUCLOCK) - KernelTimer kernelTimer(cost && load_balance_costs_update_algo - == LoadBalanceCostsUpdateAlgo::GpuClock, cost_real); + const auto KernelTimer = ablastr::parallelization::KernelTimer( + cost && (load_balance_costs_update_algo == LoadBalanceCostsUpdateAlgo::GpuClock), + cost_real); #endif // Inverse of Lorentz factor gamma |