summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2021-12-10 16:32:11 -0800
committerGitHub <noreply@github.com>2021-12-10 17:32:11 -0700
commitb9717ca261a8cba8447cfcd1241374041b554b81 (patch)
treeba2eb9381abc202d5f891fd34c6b17d9fbee9ce2 /var
parent5d6a9a70c8c0a7e6e5f222a531bf360579247949 (diff)
downloadspack-b9717ca261a8cba8447cfcd1241374041b554b81.tar.gz
spack-b9717ca261a8cba8447cfcd1241374041b554b81.tar.bz2
spack-b9717ca261a8cba8447cfcd1241374041b554b81.tar.xz
spack-b9717ca261a8cba8447cfcd1241374041b554b81.zip
vtk-h +cuda: pass cuda_arch to vtk-m dependency (#27923)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vtk-h/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/vtk-h/package.py b/var/spack/repos/builtin/packages/vtk-h/package.py
index 278a6cb373..e876810637 100644
--- a/var/spack/repos/builtin/packages/vtk-h/package.py
+++ b/var/spack/repos/builtin/packages/vtk-h/package.py
@@ -76,8 +76,9 @@ class VtkH(Package, CudaPackage):
depends_on("vtk-m~tbb+openmp", when="+openmp")
depends_on("vtk-m~tbb~openmp", when="~openmp")
- depends_on("vtk-m+cuda~tbb+openmp", when="+cuda+openmp")
- depends_on("vtk-m+cuda~tbb~openmp", when="+cuda~openmp")
+ for _arch in CudaPackage.cuda_arch_values:
+ depends_on("vtk-m+cuda~tbb+openmp cuda_arch={0}".format(_arch), when="+cuda+openmp cuda_arch={0}".format(_arch))
+ depends_on("vtk-m+cuda~tbb~openmp cuda_arch={0}".format(_arch), when="+cuda~openmp cuda_arch={0}".format(_arch))
depends_on("vtk-m~tbb+openmp~shared", when="+openmp~shared")
depends_on("vtk-m~tbb~openmp~shared", when="~openmp~shared")