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: 1891480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=UOVUr8oE; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TM3Tm0hpBz23fD for ; Sat, 27 Jan 2024 03:45:32 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E2C26385841C for ; Fri, 26 Jan 2024 16:45:29 +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-Google-Smtp-Source: AGHT+IFN5sUeg+2ClH8uCBX1vxO1nBS2QX7RoO7D7GCuCQ/bHa+AgmjCnV79dt14BpMDee3SUNqnjA== 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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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