From 6ed28f40119e118734b7050d17b977a2141ccd3f Mon Sep 17 00:00:00 2001
From: Christian Feld <c.feld@fz-juelich.de>
Date: Mon, 30 May 2022 13:43:29 +0200
Subject: [PATCH] Add SCAN_TRACE_FILESYS to modextravars

SCAN_TRACE_FILESYS restricts the creation of huge amounts of trace
data to certain file systems only.
---
 .../s/Scalasca/Scalasca-2.6-gompi-2021b.eb        | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-gpsmpi-2021b.eb       | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-iimpi-2021b.eb        | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-iompi-2021b.eb        | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-ipsmpi-2021b.eb       | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-npsmpic-2021b.eb      | 15 +++++++++++++--
 .../s/Scalasca/Scalasca-2.6-nvompic-2021b.eb      | 15 +++++++++++++--
 7 files changed, 91 insertions(+), 14 deletions(-)

diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-gompi-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-gompi-2021b.eb
index cd639d11f..256eccb9d 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-gompi-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-gompi-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-gpsmpi-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-gpsmpi-2021b.eb
index 9ba5462f9..3d712d190 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-gpsmpi-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-gpsmpi-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-iimpi-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-iimpi-2021b.eb
index d0be01453..c714022d2 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-iimpi-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-iimpi-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-iompi-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-iompi-2021b.eb
index b1468bdad..c51a66aae 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-iompi-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-iompi-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-ipsmpi-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-ipsmpi-2021b.eb
index cacbe0bc4..2c906f051 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-ipsmpi-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-ipsmpi-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-npsmpic-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-npsmpic-2021b.eb
index 49c2e7e5c..b504b706c 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-npsmpic-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-npsmpic-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
diff --git a/Golden_Repo/s/Scalasca/Scalasca-2.6-nvompic-2021b.eb b/Golden_Repo/s/Scalasca/Scalasca-2.6-nvompic-2021b.eb
index 9336b6573..e713e6f74 100644
--- a/Golden_Repo/s/Scalasca/Scalasca-2.6-nvompic-2021b.eb
+++ b/Golden_Repo/s/Scalasca/Scalasca-2.6-nvompic-2021b.eb
@@ -47,7 +47,18 @@ sanity_check_paths = {
     'dirs': [],
 }
 
-# Ensure that local metric documentation is found by CubeGUI
-modextrapaths = {'CUBE_DOCPATH': 'share/doc/scalasca/patterns'}
+# note that modextrapaths can be used for relative paths only
+modextrapaths = {
+    # Ensure that local metric documentation is found by CubeGUI
+    'CUBE_DOCPATH': 'share/doc/scalasca/patterns'
+}
+
+modextravars = {
+    # Specifies an optional list of colon separated paths identifying
+    # suitable file systems for tracing. If set, the file system of
+    # trace measurements has to match at least one of the specified
+    # file systems.
+    'SCAN_TRACE_FILESYS': '/p/project:/p/scratch:/p/cscratch:/p/fastdata:/p/largedata:/p/largedata2'
+}
 
 moduleclass = 'perf'
-- 
GitLab