From a38beeaed2745c848eb9ff0e2dc670810d1f00fe Mon Sep 17 00:00:00 2001 From: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> Date: Mon, 22 Aug 2022 09:13:59 -0500 Subject: HPX: ROCm and Cuda conflict needed (#32178) Discovered this missing conflict when building the e4s enviroment with unify:when_possible. #31940 --- var/spack/repos/builtin/packages/hpx/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index 23176aadc9..f62a939428 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -124,6 +124,9 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): depends_on("papi", when="instrumentation=papi") depends_on("valgrind", when="instrumentation=valgrind") + # Only ROCm or CUDA maybe be enabled at once + conflicts("+rocm", when="+cuda") + # Restrictions for 1.8.X with when("@1.8:"): conflicts("cxxstd=14") -- cgit v1.2.3-70-g09d2