| 1 |
; Options for the NVPTX port |
| 2 |
; Copyright (C) 2014-2025 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 |
|
| 20 |
HeaderInclude |
| 21 |
config/nvptx/nvptx-opts.h |
| 22 |
|
| 23 |
; It's not clear whether this was ever build/tested/used, so this is no longer |
| 24 |
; exposed to the user. |
| 25 |
;m32 |
| 26 |
;Target RejectNegative InverseMask(ABI64) |
| 27 |
;Generate code for a 32-bit ABI. |
| 28 |
|
| 29 |
m64 |
| 30 |
Target RejectNegative Mask(ABI64) |
| 31 |
Ignored, but preserved for backward compatibility. Only 64-bit ABI is |
| 32 |
supported. |
| 33 |
|
| 34 |
mmainkernel |
| 35 |
Target RejectNegative |
| 36 |
Link in code for a __main kernel. |
| 37 |
|
| 38 |
moptimize |
| 39 |
Target Var(nvptx_optimize) Init(-1) |
| 40 |
Optimize partition neutering. |
| 41 |
|
| 42 |
msoft-stack |
| 43 |
Target Mask(SOFT_STACK) |
| 44 |
Use custom stacks instead of local memory for automatic storage. |
| 45 |
|
| 46 |
msoft-stack-reserve-local= |
| 47 |
Target Joined RejectNegative UInteger Var(nvptx_softstack_size) Init(128) |
| 48 |
Specify size of .local memory used for stack when the exact amount is not known. |
| 49 |
|
| 50 |
muniform-simt |
| 51 |
Target Mask(UNIFORM_SIMT) |
| 52 |
Generate code that can keep local state uniform across all lanes. |
| 53 |
|
| 54 |
mgomp |
| 55 |
Target Mask(GOMP) |
| 56 |
Generate code for OpenMP offloading: enables -msoft-stack and -muniform-simt. |
| 57 |
|
| 58 |
misa= |
| 59 |
Target RejectNegative Negative(misa=) ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_unset) |
| 60 |
Specify the PTX ISA target architecture to use. |
| 61 |
|
| 62 |
march= |
| 63 |
Target RejectNegative Joined Alias(misa=) |
| 64 |
Alias: |
| 65 |
|
| 66 |
march-map=sm_30 |
| 67 |
Target RejectNegative Alias(misa=,sm_30) |
| 68 |
|
| 69 |
march-map=sm_32 |
| 70 |
Target RejectNegative Alias(misa=,sm_30) |
| 71 |
|
| 72 |
march-map=sm_35 |
| 73 |
Target RejectNegative Alias(misa=,sm_35) |
| 74 |
|
| 75 |
march-map=sm_37 |
| 76 |
Target RejectNegative Alias(misa=,sm_37) |
| 77 |
|
| 78 |
march-map=sm_50 |
| 79 |
Target RejectNegative Alias(misa=,sm_37) |
| 80 |
|
| 81 |
march-map=sm_52 |
| 82 |
Target RejectNegative Alias(misa=,sm_52) |
| 83 |
|
| 84 |
march-map=sm_53 |
| 85 |
Target RejectNegative Alias(misa=,sm_53) |
| 86 |
|
| 87 |
march-map=sm_60 |
| 88 |
Target RejectNegative Alias(misa=,sm_53) |
| 89 |
|
| 90 |
march-map=sm_61 |
| 91 |
Target RejectNegative Alias(misa=,sm_61) |
| 92 |
|
| 93 |
march-map=sm_62 |
| 94 |
Target RejectNegative Alias(misa=,sm_61) |
| 95 |
|
| 96 |
march-map=sm_70 |
| 97 |
Target RejectNegative Alias(misa=,sm_70) |
| 98 |
|
| 99 |
march-map=sm_72 |
| 100 |
Target RejectNegative Alias(misa=,sm_70) |
| 101 |
|
| 102 |
march-map=sm_75 |
| 103 |
Target RejectNegative Alias(misa=,sm_75) |
| 104 |
|
| 105 |
march-map=sm_80 |
| 106 |
Target RejectNegative Alias(misa=,sm_80) |
| 107 |
|
| 108 |
march-map=sm_86 |
| 109 |
Target RejectNegative Alias(misa=,sm_80) |
| 110 |
|
| 111 |
march-map=sm_87 |
| 112 |
Target RejectNegative Alias(misa=,sm_80) |
| 113 |
|
| 114 |
march-map=sm_89 |
| 115 |
Target RejectNegative Alias(misa=,sm_89) |
| 116 |
|
| 117 |
march-map=sm_90 |
| 118 |
Target RejectNegative Alias(misa=,sm_89) |
| 119 |
|
| 120 |
march-map=sm_90a |
| 121 |
Target RejectNegative Alias(misa=,sm_89) |
| 122 |
|
| 123 |
Enum |
| 124 |
Name(ptx_version) Type(enum ptx_version) |
| 125 |
Known PTX ISA versions (for use with the -mptx= option): |
| 126 |
|
| 127 |
EnumValue |
| 128 |
Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1) |
| 129 |
|
| 130 |
EnumValue |
| 131 |
Enum(ptx_version) String(4.1) Value(PTX_VERSION_4_1) |
| 132 |
|
| 133 |
EnumValue |
| 134 |
Enum(ptx_version) String(4.2) Value(PTX_VERSION_4_2) |
| 135 |
|
| 136 |
EnumValue |
| 137 |
Enum(ptx_version) String(5.0) Value(PTX_VERSION_5_0) |
| 138 |
|
| 139 |
EnumValue |
| 140 |
Enum(ptx_version) String(6.0) Value(PTX_VERSION_6_0) |
| 141 |
|
| 142 |
EnumValue |
| 143 |
Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3) |
| 144 |
|
| 145 |
EnumValue |
| 146 |
Enum(ptx_version) String(7.0) Value(PTX_VERSION_7_0) |
| 147 |
|
| 148 |
EnumValue |
| 149 |
Enum(ptx_version) String(7.3) Value(PTX_VERSION_7_3) |
| 150 |
|
| 151 |
EnumValue |
| 152 |
Enum(ptx_version) String(7.8) Value(PTX_VERSION_7_8) |
| 153 |
|
| 154 |
EnumValue |
| 155 |
Enum(ptx_version) String(_) Value(PTX_VERSION_default) |
| 156 |
|
| 157 |
mptx= |
| 158 |
Target RejectNegative Negative(mptx=) ToLower Joined Enum(ptx_version) Var(ptx_version_option) Init(PTX_VERSION_unset) |
| 159 |
Specify the PTX ISA version to use. |
| 160 |
|
| 161 |
minit-regs= |
| 162 |
Target Var(nvptx_init_regs) IntegerRange(0, 3) Joined UInteger Init(3) |
| 163 |
Initialize ptx registers. |
| 164 |
|
| 165 |
mptx-comment |
| 166 |
Target Var(nvptx_comment) Init(1) Undocumented |
| 167 |
|
| 168 |
malias |
| 169 |
Target Var(nvptx_alias) Init(0) Undocumented |
| 170 |
|
| 171 |
mexperimental |
| 172 |
Target Var(nvptx_experimental) Init(0) Undocumented |
| 173 |
|
| 174 |
mfake-exceptions |
| 175 |
Target Var(fake_exceptions) Init(0) Undocumented |
| 176 |
; With '-mfake-exceptions' enabled, the user-visible behavior in presence of |
| 177 |
; exception handling constructs changes such that the compile-time |
| 178 |
; 'sorry, unimplemented: exception handling not supported' is skipped, code |
| 179 |
; generation proceeds, and instead, exception handling constructs 'abort' at |
| 180 |
; run time. (..., or don't, if they're in dead code.) |
| 181 |
|
| 182 |
mfake-ptx-alloca |
| 183 |
Target Var(nvptx_fake_ptx_alloca) Init(0) Undocumented |
| 184 |
; With '-mfake-ptx-alloca' enabled, the user-visible behavior changes only |
| 185 |
; for configurations where PTX 'alloca' is not available. Rather than a |
| 186 |
; compile-time 'sorry, unimplemented: dynamic stack allocation not supported' |
| 187 |
; in presence of dynamic stack allocation, with '-mfake-ptx-alloca' enabled, |
| 188 |
; compilation, assembly, and linking succeeds, as does execution, in case that |
| 189 |
; 'alloca' is not attempted (if only used in error code paths, for example), |
| 190 |
; and a run-time failure only in case that 'alloca' is actually attempted. |
| 191 |
; |
| 192 |
; This is meant to be used in scenarios where large volumes of code are |
| 193 |
; compiled, a small fraction of which runs into dynamic stack allocation, but |
| 194 |
; these parts are not important for specific use cases, and we'd thus like the |
| 195 |
; build to succeed, and error out just upon actual, very rare use of 'alloca'. |