intel-mpi-benchmarks: Add MPI implementation check variant (#37363)

* Add MPI implementation check variant to Intel MPI Benchmarks

* [@spackbot] updating style on behalf of jack-morrison
This commit is contained in:
Jack Morrison 2023-05-30 17:37:58 -04:00 committed by GitHub
parent 9428749a3c
commit 84faf5a6cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,9 @@ class IntelMpiBenchmarks(MakefilePackage):
variant("p2p", default=True, description="Build P2P benchmark", when="@2018:")
variant("rma", default=True, description="Build RMA benchmark")
variant("mt", default=True, description="Build MT benchmark")
variant(
"check", default=False, description="Build with MPI implementation verification checks"
)
# Handle missing variants in previous versions
conflicts("+p2p", when="@:2019")
@ -101,9 +104,12 @@ def build_targets(self):
if "+mt" in spec:
targets.append("MT")
if self.spec.satisfies("@2019:"):
if spec.satisfies("@2019:"):
targets = ["TARGET=" + target for target in targets]
if "+check" in spec:
targets.append("CPPFLAGS=-DCHECK")
return targets
def edit(self, spec, prefix):