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`.
This commit is contained in:
Erik Schnetter 2020-12-04 04:16:35 -05:00 committed by GitHub
parent f391b2e8e5
commit 2d3e491845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,8 @@ class Amrex(CMakePackage):
depends_on('cmake@3.5:', type='build', when='@:18.10.99') 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.13:', type='build', when='@18.11:')
depends_on('cmake@3.14:', type='build', when='@19.04:') 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('%apple-clang')
conflicts('%clang') conflicts('%clang')