summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2024-09-27 05:30:47 +0200
committerGitHub <noreply@github.com>2024-09-27 05:30:47 +0200
commit20f90dcda20afaf823fd1e73f4273d5cd5a46e4c (patch)
treef26fd3cd06025008f3995c4d4141350c09d301da
parent6f5f6a65b3b441d49d777758e33621b40537319f (diff)
downloadspack-20f90dcda20afaf823fd1e73f4273d5cd5a46e4c.tar.gz
spack-20f90dcda20afaf823fd1e73f4273d5cd5a46e4c.tar.bz2
spack-20f90dcda20afaf823fd1e73f4273d5cd5a46e4c.tar.xz
spack-20f90dcda20afaf823fd1e73f4273d5cd5a46e4c.zip
LLVM: mark cuda_arch compatibility (#46397)
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index 3e2c55712c..69881c8057 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -424,6 +424,19 @@ class Llvm(CMakePackage, CudaPackage, LlvmDetection, CompilerPackage):
# cuda_arch value 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
# CMake bug: https://gitlab.kitware.com/cmake/cmake/-/issues/21469
# Fixed in upstream versions of both