public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Andrew Stubbs <ams@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-11] nvptx: bump default to PTX 4.1 Date: Wed, 22 Dec 2021 10:49:16 +0000 (GMT) [thread overview] Message-ID: <20211222104916.EEEC63858419@sourceware.org> (raw) https://gcc.gnu.org/g:5f702eb7ad1e50bc3ca37e247d8097a8b15d5606 commit 5f702eb7ad1e50bc3ca37e247d8097a8b15d5606 Author: Andrew Stubbs <ams@codesourcery.com> Date: Tue Dec 21 10:09:08 2021 +0000 nvptx: bump default to PTX 4.1 gcc/ChangeLog: * config/nvptx/nvptx-opts.h (ptx_version): Change PTX_VERSION_3_1 to PTX_VERSION_4_1. * config/nvptx/nvptx.c (nvptx_file_start): Bump minimum PTX version to 4.1. * config/nvptx/nvptx.opt (ptx_version): Add 4.1. Change default. doc/invoke.texi: -mptx default is now 4.1. Diff: --- gcc/ChangeLog.omp | 9 +++++++++ gcc/config/nvptx/nvptx-opts.h | 2 +- gcc/config/nvptx/nvptx.c | 2 +- gcc/config/nvptx/nvptx.opt | 8 ++++++-- gcc/doc/invoke.texi | 4 ++-- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp index 5c1a09d05c8..012cc52a9e0 100644 --- a/gcc/ChangeLog.omp +++ b/gcc/ChangeLog.omp @@ -1,3 +1,12 @@ +2021-12-22 Andrew Stubbs <ams@codesourcery.com> + + * config/nvptx/nvptx-opts.h (ptx_version): Change PTX_VERSION_3_1 to + PTX_VERSION_4_1. + * config/nvptx/nvptx.c (nvptx_file_start): Bump minimum PTX version + to 4.1. + * config/nvptx/nvptx.opt (ptx_version): Add 4.1. Change default. + doc/invoke.texi: -mptx default is now 4.1. + 2021-11-02 Tobias Burnus <tobias@codesourcery.com> Backport from master: diff --git a/gcc/config/nvptx/nvptx-opts.h b/gcc/config/nvptx/nvptx-opts.h index bfa926ef0f7..75e75164e24 100644 --- a/gcc/config/nvptx/nvptx-opts.h +++ b/gcc/config/nvptx/nvptx-opts.h @@ -28,7 +28,7 @@ enum ptx_isa enum ptx_version { - PTX_VERSION_3_1, + PTX_VERSION_4_1, PTX_VERSION_6_3 }; diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 15f6fc82132..5437b12c925 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -4832,7 +4832,7 @@ nvptx_file_start (void) if (TARGET_PTX_6_3) fputs ("\t.version\t6.3\n", asm_out_file); else - fputs ("\t.version\t3.1\n", asm_out_file); + fputs ("\t.version\t4.1\n", asm_out_file); if (TARGET_SM35) fputs ("\t.target\tsm_35\n", asm_out_file); else diff --git a/gcc/config/nvptx/nvptx.opt b/gcc/config/nvptx/nvptx.opt index 468c6cafd57..521b8ea0645 100644 --- a/gcc/config/nvptx/nvptx.opt +++ b/gcc/config/nvptx/nvptx.opt @@ -70,12 +70,16 @@ Enum Name(ptx_version) Type(int) Known PTX versions (for use with the -mptx= option): +; Keep 3.1 for backwards compatibility only EnumValue -Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1) +Enum(ptx_version) String(3.1) Value(PTX_VERSION_4_1) + +EnumValue +Enum(ptx_version) String(4.1) Value(PTX_VERSION_4_1) EnumValue Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3) mptx= -Target RejectNegative ToLower Joined Enum(ptx_version) Var(ptx_version_option) Init(PTX_VERSION_3_1) +Target RejectNegative ToLower Joined Enum(ptx_version) Var(ptx_version_option) Init(PTX_VERSION_4_1) Specify the version of the ptx version to use. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ef55ee595fc..5f32d3e23f2 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -26423,8 +26423,8 @@ strings must be lower-case. Valid ISA strings include @samp{sm_30} and @item -mptx=@var{version-string} @opindex mptx Generate code for given the specified PTX version (e.g.@: @samp{6.3}). -Valid version strings include @samp{3.1} and @samp{6.3}. The default PTX -version is 3.1. +Valid version strings include @samp{4.1} and @samp{6.3}. The default PTX +version is 4.1. @item -mmainkernel @opindex mmainkernel
reply other threads:[~2021-12-22 10:49 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211222104916.EEEC63858419@sourceware.org \ --to=ams@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).