diff options
author | Tom de Vries <tdevries@suse.de> | 2022-03-03 09:22:42 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-03-03 10:43:35 +0100 |
commit | 5b5e456f0187406e17444b6e40d974f94524f2a2 (patch) | |
tree | 9b220a9f3874cde0fabd7cd27046292d36e3df3f /gcc/config | |
parent | 07667c911b1827fb98a1b5da621d51d8fcf0409a (diff) | |
download | gcc-5b5e456f0187406e17444b6e40d974f94524f2a2.zip gcc-5b5e456f0187406e17444b6e40d974f94524f2a2.tar.gz gcc-5b5e456f0187406e17444b6e40d974f94524f2a2.tar.bz2 |
[nvptx] Build libraries with mptx=3.1
In gcc-5 to gcc-11, the ptx isa version was 3.1.
On trunk, the default is now 6.0, which is also what will be the value in
the libraries.
Consequently, there may be setups with an older driver that worked with
gcc-11, but will become unsupported with gcc-12.
Fix this by building the libraries with mptx=3.1.
After this, setups with an older driver still won't work out of the box
with gcc-12, because the default ptx isa version has changed, but should work
after specifying mptx=3.1.
gcc/ChangeLog:
2022-03-03 Tom de Vries <tdevries@suse.de>
* config/nvptx/t-nvptx (MULTILIB_EXTRA_OPTS): Add mptx=3.1.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/nvptx/t-nvptx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/nvptx/t-nvptx b/gcc/config/nvptx/t-nvptx index 056d2dd..8f67264 100644 --- a/gcc/config/nvptx/t-nvptx +++ b/gcc/config/nvptx/t-nvptx @@ -32,4 +32,4 @@ s-nvptx-gen-opt: $(srcdir)/config/nvptx/nvptx-sm.def MULTILIB_OPTIONS = mgomp -MULTILIB_EXTRA_OPTS = misa=sm_30 +MULTILIB_EXTRA_OPTS = misa=sm_30 mptx=3.1 |