From patchwork Wed Mar 30 12:27:41 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Tom de Vries
X-Patchwork-Id: 52472
Return-Path:
X-Original-To: patchwork@sourceware.org
Delivered-To: patchwork@sourceware.org
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id 58EAA385DC31
for ; Wed, 30 Mar 2022 12:28:13 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58EAA385DC31
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;
s=default; t=1648643293;
bh=qD8KmOjv44GniMfzcm4HEir4Td2A0xvqRgah0WvXVYI=;
h=Date:To:References:Subject:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=wqMzl6x5OpmBbiszeD7HprHpeW967l/Vyt1le5RWg5jR0hXn2BcEIgD6c4Vr8tbkk
ZRP1zvIj6ZhE8uDvonRVBAxctg97Hg5NVBJ9MX7/5zJznuTLcGKZBLJdMBBokg5lHp
a50v+5Wzz8kjPhakIidzdfcJsFDUq6KwESAjoYCY=
X-Original-To: gcc-patches@gcc.gnu.org
Delivered-To: gcc-patches@gcc.gnu.org
Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28])
by sourceware.org (Postfix) with ESMTPS id B24D23858405
for ; Wed, 30 Mar 2022 12:27:43 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B24D23858405
Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
[192.168.254.74])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512)
(No client certificate requested)
by smtp-out1.suse.de (Postfix) with ESMTPS id 7712F210DB;
Wed, 30 Mar 2022 12:27:42 +0000 (UTC)
Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
[192.168.254.74])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512)
(No client certificate requested)
by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4802013A60;
Wed, 30 Mar 2022 12:27:42 +0000 (UTC)
Received: from dovecot-director2.suse.de ([192.168.254.65])
by imap2.suse-dmz.suse.de with ESMTPSA id jQ1WEL5MRGIbNwAAMHmgww
(envelope-from ); Wed, 30 Mar 2022 12:27:42 +0000
Message-ID:
Date: Wed, 30 Mar 2022 14:27:41 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-US
To: Tobias Burnus ,
gcc-patches
References: <1ffa4e66-af1a-4392-795a-31a8f0047c92@codesourcery.com>
Subject: [wwwdocs][patch] gcc-12: Nvptx updates.
In-Reply-To: <1ffa4e66-af1a-4392-795a-31a8f0047c92@codesourcery.com>
X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS,
KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-Patchwork-Original-From: Tom de Vries via Gcc-patches
From: Tom de Vries
Reply-To: Tom de Vries
Cc: Thomas Schwinge ,
Roger Sayle
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Sender: "Gcc-patches"
[ was: Re: [wwwdocs][patch] gcc-12/changes.html: Document -misa update
for nvptx ]
On 3/3/22 13:27, Tobias Burnus wrote:
> The current wording, https://gcc.gnu.org/gcc-12/changes.html#nvptx ,
> is outdated and (now wrongly) encourages to use -mptx=.
>
> Updated as follows.
I've taken these changes as a base, revised and added some more items.
Any comments?
Also, feel free to instead comment on the full-text version below
(copied from firefox after opening the page), that might be more readable.
Thanks,
- Tom
-----------------------------------------------------------------------------
NVPTX
The -march flag has been added. The -misa flag is now considered an
alias of the -march flag.
Support for PTX ISA target architectures sm_53, sm_70, sm_75 and
sm_80 has been added. These can be specified using the -march flag.
The default PTX ISA target architecture has been set back to sm_30,
to fix support for sm_30 boards.
The -march-map flag has been added. The -march-map value will be
mapped to an valid -march flag value. For instance, -march-map=sm_50
maps to -march=sm_35. This can be used to specify that generated code is
to be executed on a board with at least some specific compute
capability, without having to know the valid values for the -march flag.
The -mptx flag has been added to specify the PTX ISA version for
the generated code; permitted values are 3.1 (matches previous GCC
versions), 6.0, 6.3, and 7.0. If not specified, the used version is the
minimal version required for -march but at least 6.0.
An mptx-3.1 multilib was added. This allows using older drivers
which do not support PTX ISA version 6.0.
The new __PTX_SM__ predefined macro allows code to check the PTX
ISA target architecture being targeted by the compiler.
The new __PTX_ISA_VERSION_MAJOR__ and __PTX_ISA_VERSION_MINOR__
predefined macros allows code to check the PTX ISA version being
targeted by the compiler.
-----------------------------------------------------------------------------
gcc-12: Nvptx updates.
Co-Authored-By: Tobias Burnus
---
htdocs/gcc-12/changes.html | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html
index 689feeba..d95f7253 100644
--- a/htdocs/gcc-12/changes.html
+++ b/htdocs/gcc-12/changes.html
@@ -493,12 +493,33 @@ a work-in-progress.
NVPTX
+ - The
-march
flag has been added. The -misa
+ flag is now considered an alias of the -march
flag.
+ - Support for PTX ISA target architectures
sm_53
,
+ sm_70
, sm_75
and sm_80
has been
+ added. These can be specified using the -march
flag.
+ - The default PTX ISA target architecture has been set back
+ to
sm_30
, to fix support for sm_30
boards.
+ - The
-march-map
flag has been added. The
+ -march-map
value will be mapped to an valid
+ -march
flag value. For instance,
+ -march-map=sm_50
maps to -march=sm_35
.
+ This can be used to specify that generated code is to be executed on a
+ board with at least some specific compute capability, without having to
+ know the valid values for the -march
flag.
- The
-mptx
flag has been added to specify the PTX ISA version
for the generated code; permitted values are 3.1
- (default, matches previous GCC versions) and 6.3
.
+ (matches previous GCC versions), 6.0
, 6.3
,
+ and 7.0
. If not specified, the used version is the minimal
+ version required for -march
but at least 6.0
.
+ - An
mptx-3.1
multilib was added. This allows using older
+ drivers which do not support PTX ISA version 6.0.
- The new
__PTX_SM__
predefined macro allows code to check the
- compute model being targeted by the compiler.
+ PTX ISA target architecture being targeted by the compiler.
+ - The new
__PTX_ISA_VERSION_MAJOR__
+ and __PTX_ISA_VERSION_MINOR__
predefined macros allows code
+ to check the PTX ISA version being targeted by the compiler.