summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorkwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>2022-08-22 09:13:59 -0500
committerGitHub <noreply@github.com>2022-08-22 16:13:59 +0200
commita38beeaed2745c848eb9ff0e2dc670810d1f00fe (patch)
treeecb96ea1777e96d077971cad3833c123b6cc924a /var
parent1c61f0420aec08bbc76cfc710b413f9a06120c39 (diff)
downloadspack-a38beeaed2745c848eb9ff0e2dc670810d1f00fe.tar.gz
spack-a38beeaed2745c848eb9ff0e2dc670810d1f00fe.tar.bz2
spack-a38beeaed2745c848eb9ff0e2dc670810d1f00fe.tar.xz
spack-a38beeaed2745c848eb9ff0e2dc670810d1f00fe.zip
HPX: ROCm and Cuda conflict needed (#32178)
Discovered this missing conflict when building the e4s enviroment with unify:when_possible. #31940
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hpx/package.py3
1 files changed, 3 insertions, 0 deletions
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")