From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 74441158043 for ; Sun, 14 Apr 2024 16:22:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A27E22BC031; Sun, 14 Apr 2024 16:22:17 +0000 (UTC) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68CE92BC02B for ; Sun, 14 Apr 2024 16:22:17 +0000 (UTC) Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2a58d2e5be8so925246a91.0 for ; Sun, 14 Apr 2024 09:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713111736; x=1713716536; darn=lists.gentoo.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AZzGfx8AyJO+pC8jSUn2w43GyvRoXWi1eNgaaSJiiV4=; b=LC6J61bZP+YWijkUQSnLu9tEUKv7QjSSFGJDOL0jibjjthb+EVT/fe7iuTVNxYtXXh PXRAQb2yC2BP9QeCa/AfTFuo0eyK7dopT60Vs2HRcwD0jr4ynNJAoSwrKRiDnewDfQfX Dp24a9DIfRLT8F31SN2MPJ6P2whHi6FbnvCkzu3hujd6skgnv2epdVuIgHQcnawivqgW oFZH41Xeo10idSGx91rE5GtBytV8WeXATZwYlYoTrnWo6pVLPUNzPtcLzbjU4fOhRfDl M/pwWidXleTTx74hd2SnJGdSx3jebARz260yKgrem4Q5mluN0BRowWWbdIX3EGGpPsAz 3IgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713111736; x=1713716536; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AZzGfx8AyJO+pC8jSUn2w43GyvRoXWi1eNgaaSJiiV4=; b=XicwGXd+oXTi9ZN66w+ZkEC2Bap72qftkj4l/5mWgmeaxT1ZJ5ntYw1n/gMXWdgG6c AO3JTOKVTFeXxt+ZOqx+gQD3TQTR3oo/QwuPZNyidXcppUE2tKBD7Lj/9W9f/96oDrrq bkZeSSm4r+1HnIljdexqpmraYwqvnQ8vseFK53Xapxr82eSHkQkDVLPueU7kD6Ufs2B5 QvtAfWxh5pBjGY+kLeiI9AZfpjlaZhT2eutPbCvoV9bgV7ngG1FV6kT82Sn52hzsYdyS nlzId4QXSQvJk8OVaTNZgStHx5vodcNJMn0GmdBWsdL4yTq2b3CIrvPa1MpUb6Weltl1 GnfA== X-Gm-Message-State: AOJu0YyhiMwCZWgc3UjWxKUPVUak+0g+q5KYXJluPYFwvnOQXwAxcVWb g9Qkt4tKRZKxVVuVyyBjhjE51mwhQY7qIACofIqfDoKiIa3jB596pj3mw+YcNGk= X-Google-Smtp-Source: AGHT+IFSYCHIokZtP5FsE+qDOjUgEnMNxdwiteiTgOzcgmqm2p5uHo77RVUJfZIKAIl5ORfpkRynUw== X-Received: by 2002:a17:903:1c1:b0:1e2:6d57:1012 with SMTP id e1-20020a17090301c100b001e26d571012mr9405282plh.5.1713111736222; Sun, 14 Apr 2024 09:22:16 -0700 (PDT) Received: from localhost ([166.111.32.48]) by smtp.gmail.com with ESMTPSA id lq13-20020a170903144d00b001e250e630ffsm6202909plb.237.2024.04.14.09.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 09:22:15 -0700 (PDT) From: Yiyang Wu To: gentoo-dev@lists.gentoo.org Cc: Yiyang Wu Subject: [gentoo-dev] [PATCH 2/2] rocm.eclass: Enable ROCm 6, add gfx94{0,1,2} (MI300) support Date: Mon, 15 Apr 2024 00:21:50 +0800 Message-ID: <20240414162158.1777-3-xgreenlandforwyy@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240414162158.1777-1-xgreenlandforwyy@gmail.com> References: <20240414162158.1777-1-xgreenlandforwyy@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.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 X-Archives-Salt: 8ce8ffb1-2853-4561-9fe2-ab11061937c1 X-Archives-Hash: 443b5b90ed49ceeca410bd357993888a Also update the references, since the original reference does not contain MI300. The "see also" blog is also removed because it hasn't been updated for 2 years. Signed-off-by: Yiyang Wu --- eclass/rocm.eclass | 12 +++++++++++- profiles/desc/amdgpu_targets.desc | 14 ++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass index e03e8bdd507a..7039455dec6b 100644 --- a/eclass/rocm.eclass +++ b/eclass/rocm.eclass @@ -161,7 +161,7 @@ _rocm_set_globals() { gfx906 gfx908 gfx90a gfx1030 ) ;; - 5.*|9999) + 5.*) unofficial_amdgpu_targets=( gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031 gfx1100 gfx1101 gfx1102 @@ -170,6 +170,16 @@ _rocm_set_globals() { gfx906 gfx908 gfx90a gfx1030 ) ;; + 6.*|9999) + unofficial_amdgpu_targets=( + gfx803 gfx900 gfx940 gfx941 + gfx1010 gfx1011 gfx1012 + gfx1031 gfx1101 gfx1102 + ) + official_amdgpu_targets=( + gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 + ) + ;; *) die "Unknown ROCm major version! Please update rocm.eclass before bumping to new ebuilds" ;; diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc index d52080781947..8f337b03f63d 100644 --- a/profiles/desc/amdgpu_targets.desc +++ b/profiles/desc/amdgpu_targets.desc @@ -1,15 +1,21 @@ -# Copyright 1999-2023 Gentoo Authors. +# Copyright 1999-2024 Gentoo Authors. # Distributed under the terms of the GNU General Public License v2 -# Reference: -# GPU name and Architecture codename: https://github.com/GPUOpen-Tools/device_info/blob/master/DeviceInfo.cpp -# See also: https://www.coelacanth-dream.com/posts/2019/12/30/did-rid-product-matome-p2/#fn:67 +# Reference: GPU name and architecture codename documented by +# GPUOpen-Tools https://github.com/GPUOpen-Tools/device_info/blob/master/DeviceInfo.cpp +# ROCm official document (Instinct accelerator only) https://rocm.docs.amd.com/en/latest/reference/gpu-arch/gpu-arch-spec-overview.html +# Kernel document (note: GC version is not amdgpu gfx target) https://www.kernel.org/doc/html/latest/gpu/amdgpu/driver-misc.html#discrete-gpu-info +# Kernel source code (map of IP version vs amdgpu gfx target) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/amd/amdkfd/kfd_device.c kgd2kfd_probe function +# Mesa drm source code https://gitlab.freedesktop.org/mesa/drm/blob/main/data/amdgpu.ids gfx803 - Fiji GPU, codename fiji, including Radeon R9 Nano/Fury/FuryX, Radeon Pro Duo, FirePro S9300x2, Radeon Instinct MI8 gfx900 - Vega GPU, codename vega10, including Radeon Vega Frontier Edition, Radeon RX Vega 56/64, Radeon RX Vega 64 Liquid, Radeon Pro Vega 48/56/64/64X, Radeon Pro WX 8200/9100, Radeon Pro V320/V340/SSG, Radeon Instinct MI25 gfx906 - Vega GPU, codename vega20, including Radeon (Pro) VII, Radeon Instinct MI50/MI60 gfx908 - CDNA Accelerator, codename arcturus, including AMD Instinct MI100 Accelerator gfx90a - CDNA2 Accelerator, codename aldebaran, including AMD Instinct MI200 series Accelerators +gfx940 - CDNA3 Accelerator, codename aqua_vangaram, MI300A rev 0 +gfx941 - CDNA3 Accelerator, codename aqua_vangaram, MI300X rev 0 +gfx942 - CDNA3 Accelerator, codename aqua_vangaram, MI300A and MI300X rev >=1 gfx1010 - RDNA GPU, codename navi10, including Radeon RX 5700XT/5700/5700M/5700B/5700XTB/5600XT/5600/5600M, Radeon Pro 5700XT/5700, Radeon Pro W5700X/W5700 gfx1011 - RDNA GPU, codename navi12, including Radeon Pro 5600M/V520 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 -- 2.41.0