LLVM: mark cuda_arch compatibility (#46397)

This commit is contained in:
Adam J. Stewart 2024-09-27 05:30:47 +02:00 committed by GitHub
parent 6f5f6a65b3
commit 20f90dcda2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -424,6 +424,19 @@ class Llvm(CMakePackage, CudaPackage, LlvmDetection, CompilerPackage):
# cuda_arch value must be specified # cuda_arch value must be specified
conflicts("cuda_arch=none", when="+cuda", msg="A value for cuda_arch must be specified.") conflicts("cuda_arch=none", when="+cuda", msg="A value for cuda_arch must be specified.")
# clang/test/Misc/target-invalid-cpu-note.c
conflicts("cuda_arch=10")
conflicts("cuda_arch=11")
conflicts("cuda_arch=12")
conflicts("cuda_arch=13")
conflicts("cuda_arch=75", when="@:13")
conflicts("cuda_arch=80", when="@:13")
conflicts("cuda_arch=86", when="@:13")
conflicts("cuda_arch=87", when="@:15")
conflicts("cuda_arch=89", when="@:15")
conflicts("cuda_arch=90", when="@:15")
conflicts("cuda_arch=90a", when="@:17")
# LLVM bug https://bugs.llvm.org/show_bug.cgi?id=48234 # LLVM bug https://bugs.llvm.org/show_bug.cgi?id=48234
# CMake bug: https://gitlab.kitware.com/cmake/cmake/-/issues/21469 # CMake bug: https://gitlab.kitware.com/cmake/cmake/-/issues/21469
# Fixed in upstream versions of both # Fixed in upstream versions of both