diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2021-12-10 16:32:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 17:32:11 -0700 |
commit | b9717ca261a8cba8447cfcd1241374041b554b81 (patch) | |
tree | ba2eb9381abc202d5f891fd34c6b17d9fbee9ce2 /var | |
parent | 5d6a9a70c8c0a7e6e5f222a531bf360579247949 (diff) | |
download | spack-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.py | 5 |
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") |