1; Options for the NVPTX port
2; Copyright (C) 2014-2020 Free Software Foundation, Inc.
3;
4; This file is part of GCC.
5;
6; GCC is free software; you can redistribute it and/or modify it under
7; the terms of the GNU General Public License as published by the Free
8; Software Foundation; either version 3, or (at your option) any later
9; version.
10;
11; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12; WARRANTY; without even the implied warranty of MERCHANTABILITY or
13; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14; for more details.
15;
16; You should have received a copy of the GNU General Public License
17; along with GCC; see the file COPYING3.  If not see
18; <http://www.gnu.org/licenses/>.
19
20m32
21Target Report RejectNegative InverseMask(ABI64)
22Generate code for a 32-bit ABI.
23
24m64
25Target Report RejectNegative Mask(ABI64)
26Generate code for a 64-bit ABI.
27
28mmainkernel
29Target Report RejectNegative
30Link in code for a __main kernel.
31
32moptimize
33Target Report Var(nvptx_optimize) Init(-1)
34Optimize partition neutering.
35
36msoft-stack
37Target Report Mask(SOFT_STACK)
38Use custom stacks instead of local memory for automatic storage.
39
40msoft-stack-reserve-local
41Target Report Joined RejectNegative UInteger Var(nvptx_softstack_size) Init(128)
42Specify size of .local memory used for stack when the exact amount is not known.
43
44muniform-simt
45Target Report Mask(UNIFORM_SIMT)
46Generate code that can keep local state uniform across all lanes.
47
48mgomp
49Target Report Mask(GOMP)
50Generate code for OpenMP offloading: enables -msoft-stack and -muniform-simt.
51
52Enum
53Name(ptx_isa) Type(int)
54Known PTX ISA versions (for use with the -misa= option):
55
56EnumValue
57Enum(ptx_isa) String(sm_30) Value(PTX_ISA_SM30)
58
59EnumValue
60Enum(ptx_isa) String(sm_35) Value(PTX_ISA_SM35)
61
62misa=
63Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_SM30)
64Specify the version of the ptx ISA to use.
65