From 2d3e4918456fcc737d7541c0561d221510429cea Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 4 Dec 2020 04:16:35 -0500 Subject: 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`. --- var/spack/repos/builtin/packages/amrex/package.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-60-g2f50