From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id BC4323847700 for ; Wed, 3 Apr 2024 10:33:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC4323847700 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 BC4323847700 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712140418; cv=none; b=KiP+vJNkY1hQ287oWE6RgyLewXxUfWI2fGrHLR9yni/5YpgpN33lQvUisrc9MW6IJYe0jHAFXU/lX0O/tlHrU/oCEV3xKDA/yPvcq80C413zUDmXC3f83RWyFS4JHaCyt01aPNT+Ek22BDAjdiV23Qa64U/kiTeFkc5/V3+M4/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712140418; c=relaxed/simple; bh=9yDVJzvfXCyoM/ByqJTQ4QlC08Zv7Bs5SA8fAkBT1qk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=eoqCsW4BUephaW7vRo7zHQQq+6IMB8tgc1MQB4rsX0hScKttjpmatW2DK2OXFSctqIFK8AKoI1vNuzbYOKpuDdS8ZkCpIOUXtMtzXTyshPO7h8vHmzc+8tX4O718+BUQY7/9aPlvNORNR2Awz+m2BfMWrBGiwOqP1bG5NVXvo88= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-51588f70d2dso8129169e87.3 for ; Wed, 03 Apr 2024 03:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712140414; x=1712745214; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0uGjxWBm1DiL2JH0+9a3ZHEWX6OCdOBCvih8s9yf//k=; b=phfdDAuhflpyy18Z2x9w3W9LXVqqvgLwgDwBQoZwS7d9w9fcQCUAWHoZr0LLXnYALR HcwVZ65pJEz5g/EEt75F5Hrq3H18oJleC6Mj4yUyeos53NKYLcpMusNGWbEw32AxJN3o R+47R4u4kcC5K7dZ4b/nkTXSEgksVg4hU9WKUF+VREUFmBN9huKA9edozgHlU6SriIYM cnhlvAxTvJJbJtYgKen2fW+5VpTXGCBYVZq4y0c6meUGl3bV7jCidIh0F82mUladT7SH Gbnd3heycfkPIa0rO8jZKBushAy48uUHoX2AExfv8khSTNwefsfv04AtvvoROsXQEdk8 ICgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712140414; x=1712745214; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0uGjxWBm1DiL2JH0+9a3ZHEWX6OCdOBCvih8s9yf//k=; b=rTU2y06SfzmUBPXeV2jPYL6+9JleaSm0vdI3VB9NoTPurkwELBQGkqBS/S+XrYSYxa ORvNeJngKBosx27J2uuTyFrtSpFhfuagNEjlRqEZAMUOU9veeWVDueFfG8WPD/ROSRYq ROai5u72POg+P/uWTul/voFHUyb1+j8fct19d+2dCeLLU4QyQayW3rNbnvX5sTWSkRwJ 9MzgevB5gFif5tRzctkihE8fihKx5xfCcOnMO7KAzMRyedGZl3xSIqndapgBFHoCze+x v+cwW9lP1Xi84PAk1fid9ig8kObZ0EVMYOQBBXJGxRn/+yScbKwrYYWf2qbqkvfjlKWs NQyQ== X-Gm-Message-State: AOJu0YyVvyrWmxFQVjQ+B1UIZY8sjjNagir9JS2jqOGAy8DFklMOCC2l z+U2VqoVyD2VPILY6gJNX8lFhyuBfjk9hD8iSuPORlFq6VOTzB9QyCm9cE2qj8I= X-Google-Smtp-Source: AGHT+IHnKitjZOpfFr6PWW9xn1ZNAlMW91kF//OoDn7kYLGN5HfzvWwxPEkgGOv6lcxCODfZJ/VOyA== X-Received: by 2002:a19:5f53:0:b0:515:d1c3:fe3f with SMTP id a19-20020a195f53000000b00515d1c3fe3fmr1496766lfj.39.1712140414037; Wed, 03 Apr 2024 03:33:34 -0700 (PDT) Received: from ?IPV6:2001:16b8:2ad3:b600:23:e49d:37af:1a62? (200116b82ad3b6000023e49d37af1a62.dip.versatel-1u1.de. [2001:16b8:2ad3:b600:23:e49d:37af:1a62]) by smtp.gmail.com with ESMTPSA id n11-20020a05600c500b00b0041624540918sm1251052wmr.9.2024.04.03.03.33.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 03:33:33 -0700 (PDT) Message-ID: <03c3f28b-4f3f-49e1-9f58-acaf3187d236@baylibre.com> Date: Wed, 3 Apr 2024 12:33:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Patch] GCN: install.texi update for Newlib change and LLVM 18 release To: Jakub Jelinek Cc: gcc-patches , Andrew Stubbs References: Content-Language: en-US From: Tobias Burnus In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Jakub, hello world Jakub Jelinek wrote: > On Wed, Apr 03, 2024 at 11:09:19AM +0200, Tobias Burnus wrote: >> @@ -3954,8 +3956,8 @@ on the GPU. >> To enable support for GCN3 Fiji devices (gfx803), GCC has to be configured with >> @option{--with-arch=@code{fiji}} or >> @option{--with-multilib-list=@code{fiji},...}. Note that support for Fiji [...] >> +devices has been removed in ROCm 4.0 and support in LLVM is deprecated and has >> +been removed in LLVM 18. > Shouldn't we at configure time then detect the case where fiji can't be > supported and either error if it is included explicitly in multilib list, or > implicitly take it out from that list and arrange error to be emitted when > using -march=fiji/gfx803 ? I am not sure that it is really needed for the reasons given below. And while it would help some specific use (having LLVM 17 and wanting to use Fiji), it will also cause some confusion as GCC 14 will magically behave differently depending how build. Additionally: * I bet most use gcc/config.gcc which works in most cases just fine (LLVM >= 17; enabling all but Fiji) * Fiji itself is old – removed from recent ROCm and LLVM >= 18, which also implies that it is seen as not seeing a lot of use While there is no configure-time check, using Fiji with LLVM 18 will fail with a semi-clear compile-time error when doing the in-tree newlib build or the libgomp build. (This shows up by default as issue with LLVM 18 + GCC 12/13; see https://gcc.gnu.org/PR114419) Likewise, it will fail with LLVM < 15 when building gfx1100/gfx1103. * * * Note: The compiler itself is perfectly happy to handle fiji and gfx1100 itself, just the LLVM MC assembler doesn't support one [< 15] or the other [>=LLVM 18]. * * * For those tracking GCC or caring, the documentation at https://gcc.gnu.org/gcc-14/changes.html#amdgcn and https://gcc.gnu.org/install/specific.html#amdgcn-x-amdhsa provides some glory details. And it is also mentioned at https://gcc.gnu.org/wiki/Offloading Tobias