summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2020-12-04 04:16:35 -0500
committerGitHub <noreply@github.com>2020-12-04 10:16:35 +0100
commit2d3e4918456fcc737d7541c0561d221510429cea (patch)
tree735dece52c7b4e655a8cf4a527973b8b88291f9b /var
parentf391b2e8e54c932201525a11bd20391962e1b58e (diff)
downloadspack-2d3e4918456fcc737d7541c0561d221510429cea.tar.gz
spack-2d3e4918456fcc737d7541c0561d221510429cea.tar.bz2
spack-2d3e4918456fcc737d7541c0561d221510429cea.tar.xz
spack-2d3e4918456fcc737d7541c0561d221510429cea.zip
amrex: constrain cmake if using cuda 11 (#20237)
`cmake @3.17:` is necessary to handle `cuda @11:` correctly. Earlier versions of `cmake` do not know that `cuda @11:` does not support `compute_30` any more, and list that compute capability as supported. This is handled in `cmake`'s file `Modules/FindCUDA/select_compute_arch.cmake`.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/amrex/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py
index 21386ba02f..884cb34a1f 100644
--- a/var/spack/repos/builtin/packages/amrex/package.py
+++ b/var/spack/repos/builtin/packages/amrex/package.py
@@ -80,6 +80,8 @@ class Amrex(CMakePackage):
depends_on('cmake@3.5:', type='build', when='@:18.10.99')
depends_on('cmake@3.13:', type='build', when='@18.11:')
depends_on('cmake@3.14:', type='build', when='@19.04:')
+ # cmake @3.17: is necessary to handle cuda @11: correctly
+ depends_on('cmake@3.17:', type='build', when='^cuda @11:')
conflicts('%apple-clang')
conflicts('%clang')