From 4dcbc9d4906a993faeae0f213ccd188e8cb7335b Mon Sep 17 00:00:00 2001
From: Anna Wellmann <a.wellmann@tu-bs.de>
Date: Fri, 29 Apr 2022 10:25:43 +0200
Subject: [PATCH] Setup strong scaling for two levels on eight GPUs

---
 apps/gpu/LBM/SphereScaling/SphereScaling.cpp  |  2 +-
 .../configPhoenix8GPU_2LevStrongStream.txt    | 42 +++++++++++++++++++
 gpu.cmake                                     |  2 +-
 3 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 apps/gpu/LBM/SphereScaling/configPhoenix8GPU_2LevStrongStream.txt

diff --git a/apps/gpu/LBM/SphereScaling/SphereScaling.cpp b/apps/gpu/LBM/SphereScaling/SphereScaling.cpp
index fbde84da2..bfaf742b2 100644
--- a/apps/gpu/LBM/SphereScaling/SphereScaling.cpp
+++ b/apps/gpu/LBM/SphereScaling/SphereScaling.cpp
@@ -119,7 +119,7 @@ void multipleLevel(const std::string& configPath)
     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
     bool useGridGenerator                  = true;
-    bool useLevels                         = false;
+    bool useLevels                         = true;
     std::string scalingType                = "strong"; // "strong" // "weak"
     // bool useStreams                        = true;
     // para->useReducedCommunicationAfterFtoC = true;
diff --git a/apps/gpu/LBM/SphereScaling/configPhoenix8GPU_2LevStrongStream.txt b/apps/gpu/LBM/SphereScaling/configPhoenix8GPU_2LevStrongStream.txt
new file mode 100644
index 000000000..a6d54810d
--- /dev/null
+++ b/apps/gpu/LBM/SphereScaling/configPhoenix8GPU_2LevStrongStream.txt
@@ -0,0 +1,42 @@
+##################################################
+#GPU Mapping
+##################################################
+Devices="0 1 2 3"
+NumberOfDevices=4
+
+##################################################
+#informations for Writing
+##################################################
+Path=/work/y0078217/Results/SphereScalingResults/8GPU/2LevStrongStream/
+#Path="F:/Work/Computations/out/SphereScaling/"
+#Prefix="SphereScaling" 
+#WriteGrid=true
+##################################################
+#informations for reading
+##################################################
+GridPath=/work/y0078217/Grids/GridSphereScaling/SphereScaling8GPU/
+#GridPath="C:"
+
+##################################################
+#number of grid levels
+##################################################
+#NOGL=1
+
+##################################################
+#LBM Version
+##################################################
+#D3Qxx=27
+#MainKernelName=CumulantK17CompChim
+
+##################################################
+#simulation parameter
+##################################################
+TimeEnd=10000
+TimeOut=10000
+#TimeStartOut=0
+
+##################################################
+# CUDA Streams and optimized communication (only used for multiple GPUs)
+##################################################
+useStreams = true
+useReducedCommunicationInInterpolation = true
\ No newline at end of file
diff --git a/gpu.cmake b/gpu.cmake
index 8c6270081..df90a54e2 100644
--- a/gpu.cmake
+++ b/gpu.cmake
@@ -44,7 +44,7 @@ IF (BUILD_VF_GPU)
     #add_subdirectory(apps/gpu/LBM/gridGeneratorTest)
     #add_subdirectory(apps/gpu/LBM/TGV_3D)
     #add_subdirectory(apps/gpu/LBM/TGV_3D_MultiGPU)
-	#add_subdirectory(apps/gpu/LBM/SphereScaling)
+	add_subdirectory(apps/gpu/LBM/SphereScaling)
 	add_subdirectory(apps/gpu/LBM/MusselOyster)
     add_subdirectory(apps/gpu/LBM/DrivenCavityMultiGPU)
 ELSE()
-- 
GitLab