summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com>2024-10-16 22:55:51 +0530
committerGitHub <noreply@github.com>2024-10-16 19:25:51 +0200
commite1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f (patch)
tree05c677e5b47e38c96a1b6d9b3a4c86a45ee3cb78
parent5611523bafba56017a80619cdc948b84fe15e030 (diff)
downloadspack-e1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f.tar.gz
spack-e1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f.tar.bz2
spack-e1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f.tar.xz
spack-e1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f.zip
extrae: Add single mpi lib variant (#46918)
Extrae normally separates the C and MPI fortran interception libs, but for mixed C/Fortran applications a combined lib is needed. Co-authored-by: fpanichi <fpanichi@amd.com> Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/extrae/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/extrae/package.py b/var/spack/repos/builtin/packages/extrae/package.py
index 299f586214..c5e10097d4 100644
--- a/var/spack/repos/builtin/packages/extrae/package.py
+++ b/var/spack/repos/builtin/packages/extrae/package.py
@@ -92,6 +92,12 @@ class Extrae(AutotoolsPackage):
depends_on("cuda", when="+cupti")
conflicts("+cupti", when="~cuda", msg="CUPTI requires CUDA")
+ variant(
+ "single-mpi-lib",
+ default=False,
+ description="Enable single MPI instrumentation library that supports both Fortran and C",
+ )
+
def configure_args(self):
spec = self.spec
if spec.satisfies("^[virtuals=mpi] intel-oneapi-mpi"):
@@ -137,6 +143,8 @@ class Extrae(AutotoolsPackage):
make.add_default_arg("CXXFLAGS=%s" % self.compiler.cxx11_flag)
args.append("CXXFLAGS=%s" % self.compiler.cxx11_flag)
+ args.extend(self.enable_or_disable("single-mpi-lib"))
+
return args
def flag_handler(self, name, flags):