From e1ea9e12a651e8d224c1ed30331f6dbb3f3dbc9f Mon Sep 17 00:00:00 2001 From: AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:55:51 +0530 Subject: 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 Co-authored-by: Bernhard Kaindl --- var/spack/repos/builtin/packages/extrae/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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): -- cgit v1.2.3-70-g09d2