diff options
-rw-r--r-- | var/spack/repos/builtin/packages/intel-mpi-benchmarks/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/intel-mpi-benchmarks/package.py b/var/spack/repos/builtin/packages/intel-mpi-benchmarks/package.py index f783841d72..ff0371a7c9 100644 --- a/var/spack/repos/builtin/packages/intel-mpi-benchmarks/package.py +++ b/var/spack/repos/builtin/packages/intel-mpi-benchmarks/package.py @@ -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 @@ class IntelMpiBenchmarks(MakefilePackage): 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): |