Article View: linux.gentoo.dev
Article #13[gentoo-dev] [PATCH 2/2] rocm.eclass: add AMDGPU targets for ROCm 10.x
From: Sv. Lockal
Date: Wed, 14 Oct 2026 12:40
Date: Wed, 14 Oct 2026 12:40
60 lines
4007 bytes
4007 bytes
Add a 10.* case with the targets of the ROCm 10.1 release.
The official list now matches the 15 GPUs in the hardware support
table of the ROCm 10.1 release notes. gfx1152 and gfx1153 are new;
gfx1102, gfx1103, gfx1150 and gfx1151 move from unofficial to official.
New unofficial targets are gfx90c and gfx1032-gfx1036.
LLVM has supported them for a long time, TheRock builds them,
and rocBLAS 10.1 ships tuned Tensile logic for gfx1032-gfx1036 and
enables gfx90c.
gfx940 and gfx941 (pre-production MI300 revisions) are dropped:
current LLVM no longer has them, and MI300 uses gfx942.
AMDGPU_TARGETS grows from 22 to 28 flags. In the past, too many
USE_EXPAND combinations made pkgcheck fail for ROCm packages, which was
fixed by removing ROCM_USEDEP from some ebuilds. The new lists do not
break any package.
Bug: https://bugs.gentoo.org/984016
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
---
eclass/rocm.eclass | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index ab5ba75b34ca..2fbf8470c29e 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -205,7 +205,7 @@ _rocm_set_globals() {
gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
)
;;
- 7.*|9999)
+ 7.*)
unofficial_amdgpu_targets=(
gfx803 gfx900 gfx906 gfx940 gfx941
gfx1010 gfx1011 gfx1012
@@ -215,6 +215,19 @@ _rocm_set_globals() {
gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
)
;;
+ 10.*|9999)
+ unofficial_amdgpu_targets=(
+ gfx803 gfx900 gfx906 gfx90c
+ gfx1010 gfx1011 gfx1012
+ gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036
+ )
+ official_amdgpu_targets=(
+ gfx908 gfx90a gfx942 gfx950 gfx1030
+ gfx1100 gfx1101 gfx1102 gfx1103
+ gfx1150 gfx1151 gfx1152 gfx1153
+ gfx1200 gfx1201
+ )
+ ;;
*)
die "Unknown ROCm major version! Please update rocm.eclass before bumping to new ebuilds"
;;
--
2.56.0
Technical Details
Message-ID:
<NO6r0-5stI-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NO6qZ-5stI-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: "Sv. Lockal" <lockalsash@gmail.com>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH 2/2] rocm.eclass: add AMDGPU targets for ROCm 10.x
Date: Wed, 14 Oct 2026 14:40:02 +0200
Message-ID: <NO6r0-5stI-7@gated-at.bofh.it>
References: <NO6qZ-5stI-5@gated-at.bofh.it>
X-Gm-Message-State: AFq9FYKMOZ8e+XCyz4OU0UFz4K9sztRS2HEj0g18Hh8O9vUEVR/pg9wU
Ntb0RAMkdYHqaHjGxSIGQi2TiM9LD71VfcrQkcbjNANKSWeDqpCmvPtZ3fJaGg==
X-Gm-Gg: AYBFou3qNB6WJVTVP8tTGTG82r6M+TJu9n178ckCncDf8fkMz21VCShT6AbXraQq+6s
6+OyW2yexd6IOsX8lR6/lakRd5LvC4d/OEjzOhCLNDP72++fut4eMav2TYb6AJhlCezE/EHUYKn
l3MLlG88oVWgYgEwHdQEOnNlI47iF0rI4933ZbHOJeNktnigl1vPyUwC71dPklXv4s71PHZnzDN
zbAROIBTzgpDCLZ0+yAifPkfVTQeEORycXCjZ1/kLqu0VbL/mtcI0IvcpPkuRLnILNGDD/+Ur+b
/4/7MJlkHKLAMwiou6PjVtST4ZhYrVEaj4Ug0vGcEPQHf91BhxOI8EiotR2DWczJ3oHZd641ws3
Xn168e/Lui8AbgNKnG1tCkQBiYVoD/YiYWHUbf4jMnm12gtwQAlcXGAKEQAssk00d5rYcB3rT5C
IL4G9HrIg4y4G8KMX04wG8gpX8IgWEQW4x6BAGc1OOwqpFbPHZwE9qvAfrzRC4VFNVwjeJZlDj0
EEkOaSITFccDdFdddYzDoZWev2W2w==
X-Received: by 2002:a17:903:2305:b0:2dd:ad73:5b56 with SMTP id d9443c01a7336-2e842cd12bamr104396685ad.17.1791981102722;
Wed, 14 Oct 2026 05:31:42 -0700 (PDT)
X-Mailer: git-send-email 2.56.0
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 60
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: sci@gentoo.org
X-Original-Date: Wed, 14 Oct 2026 20:31:36 +0800
X-Original-Message-ID: <20261014123136.3488027-2-lockalsash@gmail.com>
X-Original-References: <20261014123136.3488027-1-lockalsash@gmail.com>