From patchwork Fri Jan 26 16:45:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 192686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:1350:b0:103:8516:c03d with SMTP id f16csp2941dyg; Fri, 26 Jan 2024 08:45:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGz/o3OH4Qhm5rsPpqmIOLh08ofNYQOKX4EfVL0XICAyEkgvbf+T6+ZXifBEtBrd2gGSdRF X-Received: by 2002:a0c:aa44:0:b0:67f:6ddb:58c4 with SMTP id e4-20020a0caa44000000b0067f6ddb58c4mr1780312qvb.45.1706287549694; Fri, 26 Jan 2024 08:45:49 -0800 (PST) Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id r16-20020a056214125000b0067f60f66a13si1624126qvv.581.2024.01.26.08.45.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:45:49 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=UOVUr8oE; arc=fail (body hash mismatch); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 475383858C3A for ; Fri, 26 Jan 2024 16:45:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 2737C3858D38 for ; Fri, 26 Jan 2024 16:45:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2737C3858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2737C3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706287511; cv=none; b=xjKhJDVKsO3h8pQaSJlcOapjeZmd7WOo89XvFhyvcjrjNEX6enoLS4tm5h8ggpxC3zvyotyKzfTUBL0mhfnzuvNS3A6XiSV+sIaF9fbr2EXU0WtnfdClQymdi4BfE6X4JbAx9mucArn8NST+YWYsc5f6JxoBOpL2rQa2Xgoiy38= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706287511; c=relaxed/simple; bh=ZRQp5gqwSD0YOR5raXlnDEkd6I7/RAZj2aQ6JnhpEBM=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=uaS87vgyxRYRbzHCOcvvc9JD5JFmLUzxTKaytne8+axEcIXqP9lXeQUVMjeJP6xKbnJHPGO2EleaZYoEhSXPRA6cXObB5gbTxln6/XWxUnowkkb7eKp+RI8+1ZDTznQKagd6PvzMz1Hw9aboIJsSIdKfrvS0pfVwR+jp60RH97A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40ee705e9bfso6833825e9.0 for ; Fri, 26 Jan 2024 08:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1706287508; x=1706892308; darn=gcc.gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=h3ULfLH2g7zJpcjHcVtQPthCdXX63O8yk/rQMKPCrIk=; b=UOVUr8oEZP1NeB9ebQmYveU1j5TJTT+yoJk5v4t8ZsGbYXRReGfYNwS1uiBBg3vO6b YbratvFRdB0jWhw92bLI06as+MANVnZ/0DMJ6IdYYf2ZBM3XfaGQoY6kMWYtdvL3ESjz /ePWJNO0Zvzlcqq8znuQ1+0QPfQUyIJenL6+KsITuTED6Q2jhp3AoeG7tV6eY942GeJe uM5PY+hmKAEd8iGmrCGzulozo15cpIyipbIU5eONKMYYWxg7poBuMISxV4ff8X7ioBwE 3kFfYOoj21enF8NL6CoW9eGgGBSz8WgaWtxPHLDuU2XITCzr0stnmleSyba7sEyXNOby i2lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706287508; x=1706892308; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=h3ULfLH2g7zJpcjHcVtQPthCdXX63O8yk/rQMKPCrIk=; b=LkSJkg5eEVKFPWQkYslqxh43QT++rvzvIKRP4BInOnhAQLgC4YXLjermj3J+IxMNHz NWd00sFiSFBsW+ynaW2zoyso23W6xrxeo/Tr/lEBOgMqJxJuvh8gTBLePDhs7w4fpakR B6dwzVTHL3Ctdxu0ohOnnxAB3hdDodVRh1NJE7pWSeTaG2NfQO3lJzGTpiOH7JlGTxRz yGXn4Es3gahi6LnS8/Q7sCLZ8ROT1YpHmEIEnyYKkmjjLDWbTx3ths72v/hP9UCvEPYS qg68nhq+bIyez0YD16B8wIu2prsNlNynH/DJ168haq5f7/Dsp2AiMad1UVupnhiMu4dl bWNQ== X-Gm-Message-State: AOJu0YxeU6IbhS37YSZDHQN6RiIJ3JU66RKaY1tiSj8nDGPXY7iNzyHC TdJxHUn6Bk9Z9N4wxt8rE32CIdGZpnX77W6o0opeoQVcTLLueSPoL/RX9Ke5zgg= X-Received: by 2002:a7b:c8d3:0:b0:40e:9d77:d9ae with SMTP id f19-20020a7bc8d3000000b0040e9d77d9aemr41059wml.146.1706287507879; Fri, 26 Jan 2024 08:45:07 -0800 (PST) Received: from ?IPV6:2001:16b8:3f27:c300:be03:58ff:fe31:f74? ([2001:16b8:3f27:c300:be03:58ff:fe31:f74]) by smtp.gmail.com with ESMTPSA id w17-20020a05600c475100b0040e486bc0dfsm6277348wmo.27.2024.01.26.08.45.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 08:45:07 -0800 (PST) Message-ID: <0d3f2d82-fc06-4929-a080-b95c7234981a@baylibre.com> Date: Fri, 26 Jan 2024 17:45:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [patch] install.texi: For gcn, recommend LLVM 15, unless gfx1100 is disabled (was: [patch] amdgcn: config.gcc - enable gfx1030 and gfx1100 multilib; add them to the docs) Content-Language: en-US To: Thomas Schwinge , Andrew Stubbs Cc: gcc-patches@gcc.gnu.org, rguenther@suse.de References: <20240124124304.1780645-1-ams@baylibre.com> <14019d71-7ffb-40e6-892f-5d8168242614@baylibre.com> <2ea86540-c32a-4869-943a-ba1f1aaace03@baylibre.com> <871qa4hxph.fsf@euler.schwinge.ddns.net> From: Tobias Burnus In-Reply-To: <871qa4hxph.fsf@euler.schwinge.ddns.net> X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789172173638271077 X-GMAIL-MSGID: 1789172173638271077 Hi, Thomas Schwinge wrote: > amdgcn: config.gcc - enable gfx1030 and gfx1100 multilib; add them to > the docs > ... > Further down in that file, we state: > @anchor{amdgcn-x-amdhsa} > @heading amdgcn-*-amdhsa > AMD GCN GPU target. > > Instead of GNU Binutils, you will need to install LLVM 13.0.1, or later, [...] > > LLVM 13.0.1 may still be fine for gfx1030 > ('[...]/amdgcn-amdhsa/gfx1030/libgcc' does get built; I've not further > tested), but it's not sufficient for gfx1100 anymore: Testing with the system compilers here, llvm-mc-14.0.6 also fails while llvm-mc-15.0.7 accepts it. > Which version of LLVM should we be recommending? >= LLVM 15, I think. How about the following wording? It still mentions LLVM 13.0.1 for those that really need it but with for the default setup, it requires 15+. Tobias install.texi: For gcn, recommend LLVM 15, unless gfx1100 is disabled gcc/ChangeLog: * doc/install.texi (amdgcn): Recommend LLVM 15+ and newlib 4.4+, but keep requiring only newlib 4.3+ and, if gfx1100 is disabled, LLVM 13.0.1+. Signed-off-by: Tobias Burnus diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 5747b5a12fe..c7794439107 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3927,14 +3927,15 @@ This is a synonym for @samp{x86_64-*-solaris2*}. @heading amdgcn-*-amdhsa AMD GCN GPU target. -Instead of GNU Binutils, you will need to install LLVM 13.0.1, or later, and copy +Instead of GNU Binutils, you will need to install LLVM 15, or later, and copy @file{bin/llvm-mc} to @file{amdgcn-amdhsa/bin/as}, @file{bin/lld} to @file{amdgcn-amdhsa/bin/ld}, @file{bin/llvm-nm} to @file{amdgcn-amdhsa/bin/nm}, and @file{bin/llvm-ar} to both @file{bin/amdgcn-amdhsa-ar} and -@file{bin/amdgcn-amdhsa-ranlib}. +@file{bin/amdgcn-amdhsa-ranlib}. Note that LLVM 13.0.1 or LLVM 14 can be used +by specifying a @code{--with-multilib-list=} that does not list @code{gfx1100}. -Use Newlib (4.3.0 or newer). +Use Newlib (4.3.0 or newer; 4.4.0 or later is recommended). To run the binaries, install the HSA Runtime from the @uref{https://rocm.docs.amd.com/,,ROCm Platform}, and use