From 1c2d135243c657504725416a71593d945336f5ef Mon Sep 17 00:00:00 2001
From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it>
Date: Tue, 28 May 2024 11:06:21 +0200
Subject: [PATCH] fix broken #ifdefs in case openmp is not enabled

---
 src/cluster/cluster.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp
index 49571cc6..44aff3db 100644
--- a/src/cluster/cluster.cpp
+++ b/src/cluster/cluster.cpp
@@ -403,7 +403,6 @@ void cluster(const string& config_file, const string& data_file, const string& o
 
 	nvtxRangePush("Output concatenation");
 #endif
-#ifdef _OPENMP
 #pragma omp barrier
 	{
 	  // thread 0 already wrote on global files, skip it and take care of appending the others
@@ -457,7 +456,6 @@ void cluster(const string& config_file, const string& data_file, const string& o
 	  //   logger->log("done.\n", LOG_DEBG);
 	  // }
 	}
-#endif
 	// here go the code to append the files written in MPI processes > 0 to the ones on MPI process 0
 #ifdef MPI_VERSION
 	if (mpidata->mpirunning) {
-- 
GitLab