1 |
commit: 88729b304dbfe1e9bf1d5384bf125704e28ff956 |
2 |
Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 10:40:53 2023 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 14:28:52 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88729b30 |
7 |
|
8 |
rocm.eclass: support RDNA3 GPU for >=5.4, remove <5 |
9 |
|
10 |
ROCm libraries with version <5 are cleaned up, remove version 4 support |
11 |
for rocm.eclass. |
12 |
|
13 |
RDNA3 has initial support in ROCm libraries starting from 5.4 releases. |
14 |
Enable gfx110* amdgpu_targets in rocm.eclass and add corresponding |
15 |
description. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/891499 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/29320 |
19 |
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
20 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
21 |
|
22 |
eclass/rocm.eclass | 13 +++++++------ |
23 |
profiles/desc/amdgpu_targets.desc | 5 ++++- |
24 |
2 files changed, 11 insertions(+), 7 deletions(-) |
25 |
|
26 |
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass |
27 |
index cf7a18b70ad2..b78dfea1cc31 100644 |
28 |
--- a/eclass/rocm.eclass |
29 |
+++ b/eclass/rocm.eclass |
30 |
@@ -1,4 +1,4 @@ |
31 |
-# Copyright 2022 Gentoo Authors |
32 |
+# Copyright 2022-2023 Gentoo Authors |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
|
35 |
# @ECLASS: rocm.eclass |
36 |
@@ -138,17 +138,18 @@ _rocm_set_globals() { |
37 |
# may help. Gentoo have patches to enable gfx1031 as well. |
38 |
local unofficial_amdgpu_targets official_amdgpu_targets |
39 |
case ${ROCM_VERSION} in |
40 |
- 4.*) |
41 |
+ 5.[0-3].*) |
42 |
unofficial_amdgpu_targets=( |
43 |
- gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1030 |
44 |
+ gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031 |
45 |
) |
46 |
official_amdgpu_targets=( |
47 |
- gfx906 gfx908 |
48 |
+ gfx906 gfx908 gfx90a gfx1030 |
49 |
) |
50 |
;; |
51 |
- 5.*) |
52 |
+ 5.*|9999) |
53 |
unofficial_amdgpu_targets=( |
54 |
- gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031 |
55 |
+ gfx803 gfx900 gfx1010 gfx1011 gfx1012 |
56 |
+ gfx1031 gfx1100 gfx1101 gfx1102 |
57 |
) |
58 |
official_amdgpu_targets=( |
59 |
gfx906 gfx908 gfx90a gfx1030 |
60 |
|
61 |
diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc |
62 |
index 66a9a7a85935..9c5739e9d9a4 100644 |
63 |
--- a/profiles/desc/amdgpu_targets.desc |
64 |
+++ b/profiles/desc/amdgpu_targets.desc |
65 |
@@ -1,4 +1,4 @@ |
66 |
-# Copyright 1999-2022 Gentoo Authors. |
67 |
+# Copyright 1999-2023 Gentoo Authors. |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
|
70 |
# Reference: |
71 |
@@ -15,3 +15,6 @@ gfx1011 - RDNA GPU, codename navi12, including Radeon Pro 5600M/V520 |
72 |
gfx1012 - RDNA GPU, codename navi14, including Radeon RX 5500XT/5500/5500M/5500XTB/5300/5300M, Radeon Pro 5500XT/5500M/5300/5300M, Radeon Pro W5500X/W5500/W5500M/W5300M |
73 |
gfx1030 - RDNA2 GPU, codename navi21/sienna cichlid, including Radeon RX 6950XT/6900XT/6800XT/6800, Radeon Pro W6800 |
74 |
gfx1031 - RDNA2 GPU, codename navi22/navy flounder, including Radeon RX 6750XT/6700XT/6800M/6700M |
75 |
+gfx1100 - RDNA3 GPU, codename navi31/plum bonito, including Radeon RX 7900XTX/7900XT |
76 |
+gfx1101 - RDNA3 GPU, codename navi32 |
77 |
+gfx1102 - RDNA3 GPU, codename navi33 |