summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2023-01-28 18:40:53 +0800
committerBenda Xu <heroxbd@gentoo.org>2023-01-31 22:28:52 +0800
commit88729b304dbfe1e9bf1d5384bf125704e28ff956 (patch)
treea13aa2760c7320852521465a0b64be29d7999e7d /eclass
parentsci-libs/rocBLAS: add 5.4.2 (diff)
downloadgentoo-88729b304dbfe1e9bf1d5384bf125704e28ff956.tar.gz
gentoo-88729b304dbfe1e9bf1d5384bf125704e28ff956.tar.bz2
gentoo-88729b304dbfe1e9bf1d5384bf125704e28ff956.zip
rocm.eclass: support RDNA3 GPU for >=5.4, remove <5
ROCm libraries with version <5 are cleaned up, remove version 4 support for rocm.eclass. RDNA3 has initial support in ROCm libraries starting from 5.4 releases. Enable gfx110* amdgpu_targets in rocm.eclass and add corresponding description. Closes: https://bugs.gentoo.org/891499 Closes: https://github.com/gentoo/gentoo/pull/29320 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rocm.eclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index cf7a18b70ad2..b78dfea1cc31 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: rocm.eclass
@@ -138,17 +138,18 @@ _rocm_set_globals() {
# may help. Gentoo have patches to enable gfx1031 as well.
local unofficial_amdgpu_targets official_amdgpu_targets
case ${ROCM_VERSION} in
- 4.*)
+ 5.[0-3].*)
unofficial_amdgpu_targets=(
- gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1030
+ gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031
)
official_amdgpu_targets=(
- gfx906 gfx908
+ gfx906 gfx908 gfx90a gfx1030
)
;;
- 5.*)
+ 5.*|9999)
unofficial_amdgpu_targets=(
- gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031
+ gfx803 gfx900 gfx1010 gfx1011 gfx1012
+ gfx1031 gfx1100 gfx1101 gfx1102
)
official_amdgpu_targets=(
gfx906 gfx908 gfx90a gfx1030