Move new CUDA conflicts inside when('~allow-unsupported-compilers') block (#26132)
* Move new CUDA conflicts inside when('~allow-unsupported-compilers') block Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
This commit is contained in:
parent
2ea1bf84ec
commit
d31830eaf5
@ -13,7 +13,7 @@ class CudaPackage(PackageBase):
|
|||||||
"""Auxiliary class which contains CUDA variant, dependencies and conflicts
|
"""Auxiliary class which contains CUDA variant, dependencies and conflicts
|
||||||
and is meant to unify and facilitate its usage.
|
and is meant to unify and facilitate its usage.
|
||||||
|
|
||||||
Maintainers: ax3l, Rombur
|
Maintainers: ax3l, Rombur, davidbeckingsale
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#gpu-feature-list
|
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#gpu-feature-list
|
||||||
@ -86,30 +86,29 @@ def cuda_flags(arch_list):
|
|||||||
# apply to platform=darwin. We currently do not provide conflicts for
|
# apply to platform=darwin. We currently do not provide conflicts for
|
||||||
# platform=darwin with %apple-clang.
|
# platform=darwin with %apple-clang.
|
||||||
|
|
||||||
# GCC
|
|
||||||
# According to
|
|
||||||
# https://github.com/spack/spack/pull/25054#issuecomment-886531664
|
|
||||||
# these conflicts are valid independently from the architecture
|
|
||||||
|
|
||||||
# minimum supported versions
|
|
||||||
conflicts('%gcc@:4', when='+cuda ^cuda@11.0:')
|
|
||||||
conflicts('%gcc@:5', when='+cuda ^cuda@11.4:')
|
|
||||||
|
|
||||||
# maximum supported version
|
|
||||||
# NOTE:
|
|
||||||
# in order to not constrain future cuda version to old gcc versions,
|
|
||||||
# it has been decided to use an upper bound for the latest version.
|
|
||||||
# This implies that the last one in the list has to be updated at
|
|
||||||
# each release of a new cuda minor version.
|
|
||||||
conflicts('%gcc@10:', when='+cuda ^cuda@:11.0')
|
|
||||||
conflicts('%gcc@11:', when='+cuda ^cuda@:11.4')
|
|
||||||
|
|
||||||
# https://gist.github.com/ax3l/9489132#gistcomment-3860114
|
|
||||||
conflicts('%gcc@10', when='+cuda ^cuda@:11.4.0')
|
|
||||||
|
|
||||||
# Linux x86_64 compiler conflicts from here:
|
# Linux x86_64 compiler conflicts from here:
|
||||||
# https://gist.github.com/ax3l/9489132
|
# https://gist.github.com/ax3l/9489132
|
||||||
with when('~allow-unsupported-compilers'):
|
with when('~allow-unsupported-compilers'):
|
||||||
|
# GCC
|
||||||
|
# According to
|
||||||
|
# https://github.com/spack/spack/pull/25054#issuecomment-886531664
|
||||||
|
# these conflicts are valid independently from the architecture
|
||||||
|
|
||||||
|
# minimum supported versions
|
||||||
|
conflicts('%gcc@:4', when='+cuda ^cuda@11.0:')
|
||||||
|
conflicts('%gcc@:5', when='+cuda ^cuda@11.4:')
|
||||||
|
|
||||||
|
# maximum supported version
|
||||||
|
# NOTE:
|
||||||
|
# in order to not constrain future cuda version to old gcc versions,
|
||||||
|
# it has been decided to use an upper bound for the latest version.
|
||||||
|
# This implies that the last one in the list has to be updated at
|
||||||
|
# each release of a new cuda minor version.
|
||||||
|
conflicts('%gcc@10:', when='+cuda ^cuda@:11.0')
|
||||||
|
conflicts('%gcc@11:', when='+cuda ^cuda@:11.4')
|
||||||
|
|
||||||
|
# https://gist.github.com/ax3l/9489132#gistcomment-3860114
|
||||||
|
conflicts('%gcc@10', when='+cuda ^cuda@:11.4.0')
|
||||||
conflicts('%gcc@5:', when='+cuda ^cuda@:7.5 target=x86_64:')
|
conflicts('%gcc@5:', when='+cuda ^cuda@:7.5 target=x86_64:')
|
||||||
conflicts('%gcc@6:', when='+cuda ^cuda@:8 target=x86_64:')
|
conflicts('%gcc@6:', when='+cuda ^cuda@:8 target=x86_64:')
|
||||||
conflicts('%gcc@7:', when='+cuda ^cuda@:9.1 target=x86_64:')
|
conflicts('%gcc@7:', when='+cuda ^cuda@:9.1 target=x86_64:')
|
||||||
|
Loading…
Reference in New Issue
Block a user