From eb92a1688d007568f1b15165d1f43874941f29d2 Mon Sep 17 00:00:00 2001 From: Anna Wellmann <a.wellmann@tu-bs.de> Date: Wed, 10 Nov 2021 15:21:41 +0100 Subject: [PATCH] Prevent user from enabling streams on a single gpu --- apps/gpu/LBM/MusselOyster/MusselOyster.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp index 8f544a362..68a584167 100644 --- a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp +++ b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp @@ -119,7 +119,12 @@ void multipleLevel(const std::string& configPath) bool useGridGenerator = true; bool useStreams = true; bool useLevels = true; - para->useReducedCommunicationAfterFtoC = true; + para->useReducedCommunicationAfterFtoC = false; + + if (para->getNumprocs() == 1) { + useStreams = false; + para->useReducedCommunicationAfterFtoC = false; + } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -- GitLab