]>
Commit | Line | Data |
---|---|---|
738f2522 | 1 | ; Options for the NVPTX port |
a945c346 | 2 | ; Copyright (C) 2014-2024 Free Software Foundation, Inc. |
738f2522 BS |
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 | ||
34af17c0 TV |
20 | ; It's not clear whether this was ever build/tested/used, so this is no longer |
21 | ; exposed to the user. | |
22 | ;m32 | |
eece52b5 | 23 | ;Target RejectNegative InverseMask(ABI64) |
34af17c0 | 24 | ;Generate code for a 32-bit ABI. |
d7705288 TS |
25 | |
26 | m64 | |
eece52b5 | 27 | Target RejectNegative Mask(ABI64) |
1625e893 TV |
28 | Ignored, but preserved for backward compatibility. Only 64-bit ABI is |
29 | supported. | |
738f2522 BS |
30 | |
31 | mmainkernel | |
eece52b5 | 32 | Target RejectNegative |
738f2522 | 33 | Link in code for a __main kernel. |
dba619f3 NS |
34 | |
35 | moptimize | |
eece52b5 | 36 | Target Var(nvptx_optimize) Init(-1) |
fab0ad92 | 37 | Optimize partition neutering. |
5012919d AM |
38 | |
39 | msoft-stack | |
eece52b5 | 40 | Target Mask(SOFT_STACK) |
5012919d AM |
41 | Use custom stacks instead of local memory for automatic storage. |
42 | ||
63ad6002 | 43 | msoft-stack-reserve-local= |
eece52b5 | 44 | Target Joined RejectNegative UInteger Var(nvptx_softstack_size) Init(128) |
0c6b03b5 AM |
45 | Specify size of .local memory used for stack when the exact amount is not known. |
46 | ||
5012919d | 47 | muniform-simt |
eece52b5 | 48 | Target Mask(UNIFORM_SIMT) |
5012919d AM |
49 | Generate code that can keep local state uniform across all lanes. |
50 | ||
51 | mgomp | |
eece52b5 | 52 | Target Mask(GOMP) |
5012919d | 53 | Generate code for OpenMP offloading: enables -msoft-stack and -muniform-simt. |
53ceb8b5 | 54 | |
53ceb8b5 | 55 | misa= |
108b99b6 | 56 | Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) |
0127fb1b | 57 | Specify the PTX ISA target architecture to use. |
2a158640 | 58 | |
c5db32a1 TV |
59 | march= |
60 | Target RejectNegative Joined Alias(misa=) | |
61 | Alias: | |
62 | ||
de0ef044 TV |
63 | march-map=sm_30 |
64 | Target RejectNegative Alias(misa=,sm_30) | |
65 | ||
66 | march-map=sm_32 | |
67 | Target RejectNegative Alias(misa=,sm_30) | |
68 | ||
69 | march-map=sm_35 | |
70 | Target RejectNegative Alias(misa=,sm_35) | |
71 | ||
72 | march-map=sm_37 | |
73 | Target RejectNegative Alias(misa=,sm_35) | |
74 | ||
75 | march-map=sm_50 | |
76 | Target RejectNegative Alias(misa=,sm_35) | |
77 | ||
78 | march-map=sm_52 | |
79 | Target RejectNegative Alias(misa=,sm_35) | |
80 | ||
81 | march-map=sm_53 | |
82 | Target RejectNegative Alias(misa=,sm_53) | |
83 | ||
84 | march-map=sm_60 | |
85 | Target RejectNegative Alias(misa=,sm_53) | |
86 | ||
87 | march-map=sm_61 | |
88 | Target RejectNegative Alias(misa=,sm_53) | |
89 | ||
90 | march-map=sm_62 | |
91 | Target RejectNegative Alias(misa=,sm_53) | |
92 | ||
93 | march-map=sm_70 | |
94 | Target RejectNegative Alias(misa=,sm_70) | |
95 | ||
96 | march-map=sm_72 | |
97 | Target RejectNegative Alias(misa=,sm_70) | |
98 | ||
99 | march-map=sm_75 | |
100 | Target RejectNegative Alias(misa=,sm_75) | |
101 | ||
102 | march-map=sm_80 | |
103 | Target RejectNegative Alias(misa=,sm_80) | |
104 | ||
105 | march-map=sm_86 | |
106 | Target RejectNegative Alias(misa=,sm_80) | |
107 | ||
108 | march-map=sm_87 | |
109 | Target RejectNegative Alias(misa=,sm_80) | |
110 | ||
111 | march-map=sm_90 | |
112 | Target RejectNegative Alias(misa=,sm_80) | |
113 | ||
2a158640 TV |
114 | Enum |
115 | Name(ptx_version) Type(int) | |
0127fb1b | 116 | Known PTX ISA versions (for use with the -mptx= option): |
2a158640 TV |
117 | |
118 | EnumValue | |
119 | Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1) | |
120 | ||
bc91cb8d TB |
121 | EnumValue |
122 | Enum(ptx_version) String(6.0) Value(PTX_VERSION_6_0) | |
123 | ||
2a158640 TV |
124 | EnumValue |
125 | Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3) | |
126 | ||
eede2498 TV |
127 | EnumValue |
128 | Enum(ptx_version) String(7.0) Value(PTX_VERSION_7_0) | |
129 | ||
9d87ad0c TV |
130 | EnumValue |
131 | Enum(ptx_version) String(_) Value(PTX_VERSION_default) | |
132 | ||
2a158640 | 133 | mptx= |
decde111 | 134 | Target RejectNegative ToLower Joined Enum(ptx_version) Var(ptx_version_option) |
0127fb1b | 135 | Specify the PTX ISA version to use. |
02aedc6f TV |
136 | |
137 | minit-regs= | |
138 | Target Var(nvptx_init_regs) IntegerRange(0, 3) Joined UInteger Init(3) | |
139 | Initialize ptx registers. | |
c2b23aaa TV |
140 | |
141 | mptx-comment | |
142 | Target Var(nvptx_comment) Init(1) Undocumented | |
f8b15e17 TV |
143 | |
144 | malias | |
145 | Target Var(nvptx_alias) Init(0) Undocumented | |
a4baa0d3 TV |
146 | |
147 | mexperimental | |
148 | Target Var(nvptx_experimental) Init(0) Undocumented |