diff options
author | Olexa Bilaniuk <obilaniu@gmail.com> | 2022-12-10 01:36:24 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-12-11 00:11:43 +0200 |
commit | 255f335d8e305d4cad261484d5d3e0f80b82d886 (patch) | |
tree | df9002d64272f75be3aea230f94731c9b98cf4b5 /mesonbuild/modules | |
parent | 36751d5d4c5093a1bb7c39ed24b9db1b56bb0cb6 (diff) | |
download | meson-255f335d8e305d4cad261484d5d3e0f80b82d886.zip meson-255f335d8e305d4cad261484d5d3e0f80b82d886.tar.gz meson-255f335d8e305d4cad261484d5d3e0f80b82d886.tar.bz2 |
CUDA: Update compute-capability limits logic for CUDA 12.
In particular, CUDA 12 removes support for Kepler (3.x) entirely.
Unusually, however, it does not introduce any new architectures,
or even compute capabilities.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/cuda.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/modules/cuda.py b/mesonbuild/modules/cuda.py index ae4bb05..67ed8ec 100644 --- a/mesonbuild/modules/cuda.py +++ b/mesonbuild/modules/cuda.py @@ -264,6 +264,14 @@ class CudaModule(NewExtensionModule): if version_compare(cuda_version, '<12'): cuda_hi_limit_gpu_architecture = '9.1' # noqa: E221 + if version_compare(cuda_version, '>=12.0'): + # https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#deprecated-features (Current) + # https://docs.nvidia.com/cuda/archive/12.0/cuda-toolkit-release-notes/index.html#deprecated-features (Eventual?) + cuda_lo_limit_gpu_architecture = '5.0' # noqa: E221 + + if version_compare(cuda_version, '<13'): + cuda_hi_limit_gpu_architecture = '10.0' # noqa: E221 + if not cuda_arch_list: cuda_arch_list = 'Auto' |