From be401748a32dfb3c6bda9aca92f5c71215a59a29 Mon Sep 17 00:00:00 2001
From: Sebastian Achilles <s.achilles@fz-juelich.de>
Date: Sat, 3 Jun 2023 16:41:29 +0200
Subject: [PATCH] add MSA feature to psmpi EasyBlock

---
 Custom_EasyBlocks/psmpi.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Custom_EasyBlocks/psmpi.py b/Custom_EasyBlocks/psmpi.py
index f9001ee72..419364518 100644
--- a/Custom_EasyBlocks/psmpi.py
+++ b/Custom_EasyBlocks/psmpi.py
@@ -60,6 +60,7 @@ class EB_psmpi(EB_MPICH):
             'threaded': [False, "Enable multithreaded build (which is slower)", CUSTOM],
             'pscom_allin_path': [None, "Enable pscom integration by giving its source path", CUSTOM],
             'cuda': [False, "Enable CUDA awareness", CUSTOM],
+            'msa': [False, "Enable MSA awareness", CUSTOM],
         })
         return extra_vars
 
@@ -88,6 +89,10 @@ class EB_psmpi(EB_MPICH):
             self.log.info("Enabling CUDA-Awareness...")
             self.cfg.update('configopts', ' --with-cuda')
 
+        if self.cfg['msa']:
+            self.log.info("Enabling MSA-Awareness...")
+            self.cfg.update('configopts', ' --with-msa-awareness')
+
         # Set confset
         comp_fam = self.toolchain.comp_family()
         if comp_fam in comp_opts:
-- 
GitLab