Skip to content

Commit fee3486

Browse files
committed
Use conflict as dependent variant can't be espressed correctly
1 parent 38a71f9 commit fee3486

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spack/packages/dla-future/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ class DlaFuture(CMakePackage, CudaPackage, ROCmPackage):
7575
variant("mpi_gpu_aware", default="no", values=("no", "all", "no_reduce_ops"), description="Use GPU-aware MPI.")
7676
requires("mpi_gpu_aware=no", when="~cuda ~rocm", msg="GPU-aware MPI requires +cuda or +rocm")
7777
conflicts("mpi_gpu_aware=all", when="^[virtuals=mpi] openmpi", msg="Not supported by OPENMPI")
78+
7879
variant(
7980
"mpi_gpu_force_contiguous",
8081
default=True,
81-
when="mpi_gpu_aware=all",
82-
when="mpi_gpu_aware=no_reduce_ops",
8382
description="Force GPU communication buffers to be contiguous before communicating.",
8483
)
84+
conflicts("mpi_gpu_force_contiguous", when="mpi_gpu_aware=no", msg="Option available only if mpi_gpu_aware is enabled")
8585

8686
generator("ninja")
8787

0 commit comments

Comments
 (0)