Skip to content

Commit

Permalink
extrae: Add single mpi lib variant (spack#46918)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
3 people authored Oct 16, 2024
1 parent 5611523 commit e1ea9e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions var/spack/repos/builtin/packages/extrae/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down Expand Up @@ -137,6 +143,8 @@ def configure_args(self):
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):
Expand Down

0 comments on commit e1ea9e1

Please sign in to comment.