This patch is a part of https://github.com/gentoo/gentoo/pull/43406

According to the "System requirements" webpage,
gfx1101/gfx1200/gfx1201 are now supported.

>From the source code few libraries have gfx1103/gfx1150/gfx1151
support, which is not officially announced.

Some released components fail to compile on gfx1150/gfx1151 - for
these components live ebuilds should be introduced.

Bug: https://bugs.gentoo.org/949494

Signed-off-by: Sv. Lockal <[email protected]>
---
 eclass/rocm.eclass | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index a7601bf43f2d2..3cdcd44c0ae27 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -184,7 +184,7 @@ _rocm_set_globals() {
  gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100
  )
  ;;
- 6.*|9999)
+ 6.4.[0-2])
  unofficial_amdgpu_targets=(
  gfx803 gfx900 gfx906 gfx940 gfx941
  gfx1010 gfx1011 gfx1012
@@ -194,6 +194,16 @@ _rocm_set_globals() {
  gfx908 gfx90a gfx942 gfx1030 gfx1100
  )
  ;;
+ 6.*|9999)
+ unofficial_amdgpu_targets=(
+ gfx803 gfx900 gfx906 gfx940 gfx941
+ gfx1010 gfx1011 gfx1012
+ gfx1031 gfx1102 gfx1103 gfx1150 gfx1151
+ )
+ official_amdgpu_targets=(
+ gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
+ )
+ ;;
  *)
  die "Unknown ROCm major version! Please update rocm.eclass before
bumping to new ebuilds"
  ;;

Reply via email to