From 86ed6651973a56dba98b2f22a5a317b408701ba2 Mon Sep 17 00:00:00 2001 From: sawenzel Date: Thu, 23 Aug 2018 09:40:34 +0200 Subject: [PATCH] Use initial-exec as threading model for G4(MT) mode (#1258) There is a performance problem with `global-dynamic` as reported in https://alice.its.cern.ch/jira/browse/O2-172 and `initial-exec` is the suggested and working solution. Note that this change does not affect any production as it will only take effect when MT is enabled (which is not the case by default yet). --- geant4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geant4.sh b/geant4.sh index 26c62a0078..f278209def 100644 --- a/geant4.sh +++ b/geant4.sh @@ -31,7 +31,7 @@ cmake $SOURCEDIR \ -DCMAKE_INSTALL_PREFIX:PATH="$INSTALLROOT" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DGEANT4_BUILD_TLS_MODEL:STRING="global-dynamic" \ + -DGEANT4_BUILD_TLS_MODEL:STRING="initial-exec" \ -DGEANT4_ENABLE_TESTING=OFF \ -DBUILD_SHARED_LIBS=ON \ -DGEANT4_INSTALL_EXAMPLES=OFF \