summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCory Bloor <Cordell.Bloor@amd.com>2022-11-23 06:23:38 -0700
committerGitHub <noreply@github.com>2022-11-23 14:23:38 +0100
commit1006c77374872459deaf98474dfe366ad5c97067 (patch)
treee102cf278dbb4d7c78ef004b583d67171347da72 /lib
parent38d4fd7711a868e0441e1b000a07a7ff94407825 (diff)
downloadspack-1006c77374872459deaf98474dfe366ad5c97067.tar.gz
spack-1006c77374872459deaf98474dfe366ad5c97067.tar.bz2
spack-1006c77374872459deaf98474dfe366ad5c97067.tar.xz
spack-1006c77374872459deaf98474dfe366ad5c97067.zip
rocm: add minimum versions for amdgpu_targets (#34030)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/rocm.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/rocm.py b/lib/spack/spack/build_systems/rocm.py
index 1519044cc0..be525664dc 100644
--- a/lib/spack/spack/build_systems/rocm.py
+++ b/lib/spack/spack/build_systems/rocm.py
@@ -159,6 +159,29 @@ class ROCmPackage(PackageBase):
# depends_on('hip@:6.0', when='amdgpu_target=gfx701')
# to indicate minimum version for each architecture.
+ # Add compiler minimum versions based on the first release where the
+ # processor is included in llvm/lib/Support/TargetParser.cpp
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx900:xnack-")
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx906:xnack-")
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx908:xnack-")
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx90c")
+ depends_on("llvm-amdgpu@4.3.0:", when="amdgpu_target=gfx90a")
+ depends_on("llvm-amdgpu@4.3.0:", when="amdgpu_target=gfx90a:xnack-")
+ depends_on("llvm-amdgpu@4.3.0:", when="amdgpu_target=gfx90a:xnack+")
+ depends_on("llvm-amdgpu@5.2.0:", when="amdgpu_target=gfx940")
+ depends_on("llvm-amdgpu@4.5.0:", when="amdgpu_target=gfx1013")
+ depends_on("llvm-amdgpu@3.8.0:", when="amdgpu_target=gfx1030")
+ depends_on("llvm-amdgpu@3.9.0:", when="amdgpu_target=gfx1031")
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx1032")
+ depends_on("llvm-amdgpu@4.1.0:", when="amdgpu_target=gfx1033")
+ depends_on("llvm-amdgpu@4.3.0:", when="amdgpu_target=gfx1034")
+ depends_on("llvm-amdgpu@4.5.0:", when="amdgpu_target=gfx1035")
+ depends_on("llvm-amdgpu@5.2.0:", when="amdgpu_target=gfx1036")
+ depends_on("llvm-amdgpu@5.3.0:", when="amdgpu_target=gfx1100")
+ depends_on("llvm-amdgpu@5.3.0:", when="amdgpu_target=gfx1101")
+ depends_on("llvm-amdgpu@5.3.0:", when="amdgpu_target=gfx1102")
+ depends_on("llvm-amdgpu@5.3.0:", when="amdgpu_target=gfx1103")
+
# Compiler conflicts
# TODO: add conflicts statements along the lines of