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>
This commit is contained in:
parent
5611523baf
commit
e1ea9e12a6
@ -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 @@ 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):
|
||||
|
Loading…
Reference in New Issue
Block a user