From 72f18e475467311ed472b1f0f4819d248742933a Mon Sep 17 00:00:00 2001
From: Juan Escobar <escj@aero.obs-mip.fr>
Date: Fri, 27 Sep 2019 18:26:04 +0200
Subject: [PATCH] Juan 27/09/2019: add stand-one compile_tensor script for
 manage+mumticore & manage use mpi via MNH key , collapse on nvidia only not
 multicore

---
 tensorproductmultigrid_Source/compile_tensor | 38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100755 tensorproductmultigrid_Source/compile_tensor

diff --git a/tensorproductmultigrid_Source/compile_tensor b/tensorproductmultigrid_Source/compile_tensor
new file mode 100755
index 000000000..b5d850a1c
--- /dev/null
+++ b/tensorproductmultigrid_Source/compile_tensor
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+set -x
+set -e
+
+OPT_BASE="  -Mbackslash -Mextend -Kieee -nofma  -Mallocatable=95 "
+#OPT_BASE="  -Mbackslash -Mextend   -Mallocatable=95 "
+
+#OPTLEVEL="  -O2 -ta=multicore,tesla:nofma,managed "
+#OPTLEVEL="  -g -O2 -ta=multicore,tesla:managed "
+OPTLEVEL=" -O2 -ta=multicore,tesla,nofma,cc35,cc50,cuda10.0,managed -Minfo=accel,ccff -Mprof=ccff  "
+#OPTLEVEL=" -O2 -ta=tesla:nofma,managed "
+
+OPT="-r8 -DCARTESIANGEOMETRY -DOVERLAPCOMMS -DPIECEWISELINEAR -Mpreprocess ${OPT_BASE} ${OPTLEVEL} "
+
+F90="mpif90 ${OPT} "
+
+rm -f *.o *.mod mg_main_mnh
+
+pgf90 -show ${OPT} mg_main_mnh.f90
+
+
+for file in parameters.f90 messages.f90 datatypes.f90 timer.f90 communication.f90 discretisation.f90 \
+            solver.f90 conjugategradient.f90 multigrid.f90 profiles.f90 mode_mg_read_param.f90 \
+	    mode_mg.f90 mode_mg_read_param.f90 \
+	    dblas.f90 
+do
+echo ====== file=$file
+${F90} -c $file
+done
+
+
+${F90} -o mg_main_mnh mg_main_mnh.f90 *.o
+
+rm -f *.o *.mod
+
+
+
-- 
GitLab