summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2021-07-27 05:41:15 -0500
committerGitHub <noreply@github.com>2021-07-27 06:41:15 -0400
commit06a292290e7a65cbcfe91928d2a9f95c433ca3e5 (patch)
treedd85561d1dcef8efe04e33c6e2f62f419bf36d1d
parent1454935edccca6e7b445521f750950a0234e4fa6 (diff)
downloadspack-06a292290e7a65cbcfe91928d2a9f95c433ca3e5.tar.gz
spack-06a292290e7a65cbcfe91928d2a9f95c433ca3e5.tar.bz2
spack-06a292290e7a65cbcfe91928d2a9f95c433ca3e5.tar.xz
spack-06a292290e7a65cbcfe91928d2a9f95c433ca3e5.zip
openmpi: fix cuda dependency (#25101)
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index c9da225944..a1cceae1c4 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -284,8 +284,7 @@ class Openmpi(AutotoolsPackage):
depends_on('hwloc@:1.999', when='@:3.999.999 ~internal-hwloc')
depends_on('hwloc +cuda', when='+cuda ~internal-hwloc')
- # Still need cuda as dependent when using external hwloc
- depends_on('cuda', when='+cuda ~internal-hwloc')
+ depends_on('cuda', when='+cuda')
depends_on('java', when='+java')
depends_on('sqlite', when='+sqlite3@:1.11')
depends_on('zlib', when='@3.0.0:')