From 3d90363bdf6ff81fdf31418f644effe1463bd811 Mon Sep 17 00:00:00 2001 From: Jan Vogelsang Date: Mon, 16 Dec 2024 17:05:32 +0100 Subject: [PATCH] Fixed MPI sync timer --- cmake/ConfigureSummary.cmake | 7 +++++++ libnestutil/config.h.in | 3 +++ 2 files changed, 10 insertions(+) diff --git a/cmake/ConfigureSummary.cmake b/cmake/ConfigureSummary.cmake index c0b7e24e8b..686edb64bb 100644 --- a/cmake/ConfigureSummary.cmake +++ b/cmake/ConfigureSummary.cmake @@ -157,6 +157,13 @@ function( NEST_PRINT_CONFIG_SUMMARY ) message( "Threaded timers : No" ) endif () + message( "" ) + if ( THREADED_TIMERS ) + message( "MPI sync timer : Yes" ) + else () + message( "MPI sync timer : No" ) + endif () + message( "" ) if ( HAVE_MUSIC ) message( "Use MUSIC : Yes (MUSIC ${MUSIC_VERSION})" ) diff --git a/libnestutil/config.h.in b/libnestutil/config.h.in index ddf3921773..70998df6f3 100644 --- a/libnestutil/config.h.in +++ b/libnestutil/config.h.in @@ -185,6 +185,9 @@ /* Whether to use one NEST internal timer per thread */ #cmakedefine THREADED_TIMERS 1 +/* Whether to use the mpi synchronization timer (including an additional barrier) */ +#cmakedefine MPI_SYNC_TIMER 1 + /* Whether to do full logging */ #cmakedefine ENABLE_FULL_LOGGING 1