From f369cdf5be9cb3510f3180e8815acaecb95f413b Mon Sep 17 00:00:00 2001 From: "A.H. Kole" Date: Wed, 18 Dec 2024 15:19:45 +0100 Subject: [PATCH] Add support for detecting external MAGMA library --- easybuild/easyblocks/e/elsi.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/easybuild/easyblocks/e/elsi.py b/easybuild/easyblocks/e/elsi.py index 053ec3698d..2681fcc3d8 100644 --- a/easybuild/easyblocks/e/elsi.py +++ b/easybuild/easyblocks/e/elsi.py @@ -131,6 +131,12 @@ def configure_step(self): self.cfg.update('configopts', "-DENABLE_BSEPACK=ON -DUSE_EXTERNAL_BSEPACK=ON") external_libs.extend(['bsepack', 'sseig']) + magma = get_software_root('magma') + if magma: + self.log.info("Using external MAGMA.") + self.cfg.update('configopts', "-DENABLE_MAGMA=ON") + external_libs.append('magma') + if get_software_root('imkl') or get_software_root('ScaLAPACK'): external_libs.extend(re.findall(r'lib(.*?)\.a', os.environ['SCALAPACK%s_STATIC_LIBS' % self.env_suff])) else: