From 778c031f120f492f22fcfdd2a5a1a37323c7d822 Mon Sep 17 00:00:00 2001
From: Juan ESCOBAR <juan.escobar@aero.obs-mip.fr>
Date: Mon, 19 Sep 2022 18:37:24 +0200
Subject: [PATCH] Juan 19/09/2022:BECNH/*/parameters_mg.nam, For GPU
 bit_repro/correctness, set smoother=6=jacobi + iswitch_cpu_gpu=100 <=> No
 witch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc

---
 .../003_mesonh_step1/parameters_mg.nam                     | 3 ++-
 .../004_mesonh_step2/parameters_mg.nam                     | 3 ++-
 .../003_mesonh_step1/parameters_mg.nam                     | 3 ++-
 .../004_mesonh_step2/parameters_mg.nam                     | 7 ++++---
 .../003_mesonh_step1/parameters_mg.nam                     | 3 ++-
 .../004_mesonh_step2/parameters_mg.nam                     | 3 ++-
 .../003_mesonh_step1/parameters_mg.nam                     | 3 ++-
 .../004_mesonh_step2/parameters_mg.nam                     | 3 ++-
 8 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/003_mesonh_step1/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/003_mesonh_step1/parameters_mg.nam
index 5d76f4dff..6fc7d7860 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/003_mesonh_step1/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/003_mesonh_step1/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -102,6 +102,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 8,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 3,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/004_mesonh_step2/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/004_mesonh_step2/parameters_mg.nam
index 5d76f4dff..6fc7d7860 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/004_mesonh_step2/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_128x128_MNH-55X/004_mesonh_step2/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -102,6 +102,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 8,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 3,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/003_mesonh_step1/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/003_mesonh_step1/parameters_mg.nam
index 209e1d572..666001d37 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/003_mesonh_step1/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/003_mesonh_step1/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -104,6 +104,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 9,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 5,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/004_mesonh_step2/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/004_mesonh_step2/parameters_mg.nam
index 209e1d572..291140b8a 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/004_mesonh_step2/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_256x256_MNH-55X/004_mesonh_step2/parameters_mg.nam
@@ -30,7 +30,7 @@
 ! * Conjugate gradient parameters
 ! *********************************************************************
 &parameters_conjugategradient
-  verbose = 10,                  ! Verbosity level
+  verbose = 0 ! 10,                  ! Verbosity level
   maxiter = 5,                ! Maximal number of iterations
   resreduction = 1.0e-1,        ! Target residual reduction
   n_prec = 1                    ! Number of smoother applications in
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -102,8 +102,9 @@
 ! * Multigrid parameters
 ! *********************************************************************
 &parameters_multigrid
-  verbose = 10,                  ! Verbosity level
+  verbose = 0 ! 10,                  ! Verbosity level
   n_lev = 9,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 5,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/003_mesonh_step1/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/003_mesonh_step1/parameters_mg.nam
index 1a5d92f6f..c603e7d60 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/003_mesonh_step1/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/003_mesonh_step1/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -102,6 +102,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 10,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 5,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/004_mesonh_step2/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/004_mesonh_step2/parameters_mg.nam
index 1a5d92f6f..c603e7d60 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/004_mesonh_step2/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_512x512_MNH-55X/004_mesonh_step2/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -102,6 +102,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 10,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 5,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/003_mesonh_step1/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/003_mesonh_step1/parameters_mg.nam
index da6e1ac67..2436ea121 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/003_mesonh_step1/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/003_mesonh_step1/parameters_mg.nam
@@ -84,7 +84,7 @@
 ! parameters of the smoother
 !
 &parameters_smoother
-  smoother = 3,                 ! Smoother method
+  smoother = 6,                 ! Smoother method
                                 !   3 = line SOR
                                 !   4 = line SSOR
                                 !   6 = line Jacobi
@@ -101,6 +101,7 @@
 &parameters_multigrid
   verbose = 10,                  ! Verbosity level
   n_lev = 7,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 3,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
diff --git a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/004_mesonh_step2/parameters_mg.nam b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/004_mesonh_step2/parameters_mg.nam
index 53ff93a8d..89de24348 100644
--- a/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/004_mesonh_step2/parameters_mg.nam
+++ b/MY_RUN/BENCH/CINES_MNH55X/004_Hector_64x64_MNH-55X/004_mesonh_step2/parameters_mg.nam
@@ -99,8 +99,9 @@
 ! * Multigrid parameters
 ! *********************************************************************
 &parameters_multigrid
-  verbose = 10,                  ! Verbosity level
+  verbose = 0,                  ! Verbosity level
   n_lev = 7,                    ! Number of levels
+  iswitch_cpu_gpu = 100         ! /!\ =100 deactive switch cpu <-> gpu computation | work only with MANAGED Memory + nvhpc
   lev_split = 3,                ! First level where data is pulled together
   n_presmooth = 1,              ! Number of presmoothing steps
   n_postsmooth = 1,             ! Number of postsmoothing steps
-- 
GitLab