From 90ccdcd72a6ed8f84970ec4ccf35cceaba85f711 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 10 Jan 2017 13:49:16 +0100
Subject: [PATCH] Update sbatch file

---
 applications/poisson_dg/donkey.sbatch | 38 +++++++++++++++++++++++++++
 applications/poisson_dg/poisson_dg.sh | 18 -------------
 2 files changed, 38 insertions(+), 18 deletions(-)
 create mode 100755 applications/poisson_dg/donkey.sbatch
 delete mode 100755 applications/poisson_dg/poisson_dg.sh

diff --git a/applications/poisson_dg/donkey.sbatch b/applications/poisson_dg/donkey.sbatch
new file mode 100755
index 00000000..d9801cea
--- /dev/null
+++ b/applications/poisson_dg/donkey.sbatch
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# Load modules
+ml gcc/6.2
+ml openblas
+ml metis
+ml suitesparse
+
+# Set a name for the job
+#sbatch -J poisson_dg
+
+# Number of processes
+#sbatch -n 16
+
+# Choose the SLURM partition (sinfo for overview)
+#sbatch -p haswell16c
+
+# Each process needs two PUs: circumvent hyperthreading
+#sbatch -c 2
+
+# Pin processes to cores
+# (Possible values: socket, core)
+#sbatch --cpu_bind=core,verbose
+
+# Run the opcount executables
+srun ./app_poisson_dg_deg2_opcount app_poisson_dg_deg2_opcount.ini
+srun ./app_poisson_dg_deg3_opcount app_poisson_dg_deg3_opcount.ini
+srun ./app_poisson_dg_deg4_opcount app_poisson_dg_deg4_opcount.ini
+srun ./app_poisson_dg_deg5_opcount app_poisson_dg_deg5_opcount.ini
+
+# Run the timing executables
+COUNT=0
+while [ $COUNT -lt 5 ]; do
+    srun ./app_poisson_dg_deg2_nonopcount app_poisson_dg_deg2_nonopcount.ini
+    srun ./app_poisson_dg_deg3_nonopcount app_poisson_dg_deg3_nonopcount.ini
+    srun ./app_poisson_dg_deg4_nonopcount app_poisson_dg_deg4_nonopcount.ini
+    srun ./app_poisson_dg_deg5_nonopcount app_poisson_dg_deg5_nonopcount.ini
+done
diff --git a/applications/poisson_dg/poisson_dg.sh b/applications/poisson_dg/poisson_dg.sh
deleted file mode 100755
index 66413006..00000000
--- a/applications/poisson_dg/poisson_dg.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# Arguments: Number of runs for the timings (defaults to 5)
-
-# Run the opcount executables
-./app_poisson_dg_deg2_opcount app_poisson_dg_deg2_opcount.ini
-./app_poisson_dg_deg3_opcount app_poisson_dg_deg3_opcount.ini
-./app_poisson_dg_deg4_opcount app_poisson_dg_deg4_opcount.ini
-./app_poisson_dg_deg5_opcount app_poisson_dg_deg5_opcount.ini
-
-# Run the timing executables
-COUNT=0
-while [ $COUNT -lt ${1:-5} ]; do
-    ./app_poisson_dg_deg2_nonopcount app_poisson_dg_deg2_nonopcount.ini
-    ./app_poisson_dg_deg3_nonopcount app_poisson_dg_deg3_nonopcount.ini
-    ./app_poisson_dg_deg4_nonopcount app_poisson_dg_deg4_nonopcount.ini
-    ./app_poisson_dg_deg5_nonopcount app_poisson_dg_deg5_nonopcount.ini
-done
-- 
GitLab