aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-04-21 22:13:21 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-21 13:13:21 -0700
commit7170d1b45c5092c060655ec216e4e56be74b3edb (patch)
treecf02be5c37db95408ab84da2ea70c1ae25d844dc /Source/WarpX.cpp
parentec6817db0bbdd418babb0002314fdc85e6c48e96 (diff)
downloadWarpX-7170d1b45c5092c060655ec216e4e56be74b3edb.tar.gz
WarpX-7170d1b45c5092c060655ec216e4e56be74b3edb.tar.zst
WarpX-7170d1b45c5092c060655ec216e4e56be74b3edb.zip
Move KernelTimer.H to ablastr/parallelization (#3863)
* move KernelTimer to ablastr * add missing folder * fixed bug * fixed bug * really fixed the bug * kernelTimer -> KernelTimer
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 69efd62dd..518d86def 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -1106,6 +1106,10 @@ WarpX::ReadParameters ()
utils::parser::queryWithParser(
pp_algo, "costs_heuristic_particles_wt", costs_heuristic_particles_wt);
}
+# ifndef WARPX_USE_GPUCLOCK
+ WARPX_ALWAYS_ASSERT_WITH_MESSAGE(WarpX::load_balance_costs_update_algo!=LoadBalanceCostsUpdateAlgo::GpuClock,
+ "`algo.load_balance_costs_update = gpuclock` requires to compile with `-DWarpX_GPUCLOCK=ON`.");
+# endif // !WARPX_USE_GPUCLOCK
// Parse algo.particle_shape and check that input is acceptable
// (do this only if there is at least one particle or laser species)