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:
parent
9428749a3c
commit
84faf5a6cf
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user