| 1 |
; Options for the GCN port of the compiler. |
| 2 |
|
| 3 |
; Copyright (C) 2016-2025 Free Software Foundation, Inc. |
| 4 |
; |
| 5 |
; This file is part of GCC. |
| 6 |
; |
| 7 |
; GCC is free software; you can redistribute it and/or modify it under |
| 8 |
; the terms of the GNU General Public License as published by the Free |
| 9 |
; Software Foundation; either version 3, or (at your option) any later |
| 10 |
; version. |
| 11 |
; |
| 12 |
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 |
; WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 14 |
; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 15 |
; for more details. |
| 16 |
; |
| 17 |
; You should have received a copy of the GNU General Public License |
| 18 |
; along with GCC; see the file COPYING3. If not see |
| 19 |
; <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
HeaderInclude |
| 22 |
config/gcn/gcn-opts.h |
| 23 |
|
| 24 |
march= |
| 25 |
Target RejectNegative Negative(march=) Joined ToLower Enum(gpu_type) Var(gcn_arch) Init(PROCESSOR_GFX900) |
| 26 |
Specify the name of the target GPU. |
| 27 |
|
| 28 |
mtune= |
| 29 |
Target RejectNegative Negative(mtune=) Joined ToLower Enum(gpu_type) Var(gcn_tune) Init(PROCESSOR_GFX900) |
| 30 |
Specify the name of the target GPU. |
| 31 |
|
| 32 |
m32 |
| 33 |
Target RejectNegative InverseMask(ABI64) |
| 34 |
Generate code for a 32-bit ABI. |
| 35 |
|
| 36 |
m64 |
| 37 |
Target RejectNegative Mask(ABI64) |
| 38 |
Generate code for a 64-bit ABI. |
| 39 |
|
| 40 |
mgomp |
| 41 |
Target RejectNegative |
| 42 |
Enable OpenMP GPU offloading. |
| 43 |
|
| 44 |
bool flag_bypass_init_error = false |
| 45 |
|
| 46 |
mbypass-init-error |
| 47 |
Target RejectNegative Var(flag_bypass_init_error) |
| 48 |
|
| 49 |
int stack_size_opt = -1 |
| 50 |
|
| 51 |
mstack-size= |
| 52 |
Target RejectNegative Joined UInteger Var(stack_size_opt) Init(-1) |
| 53 |
Obsolete; use GCN_STACK_SIZE at runtime. |
| 54 |
|
| 55 |
int gang_private_size_opt = -1 |
| 56 |
|
| 57 |
mgang-private-size= |
| 58 |
Target RejectNegative Joined UInteger Var(gang_private_size_opt) Init(-1) |
| 59 |
Amount of local data-share (LDS) memory to reserve for gang-private variables. |
| 60 |
|
| 61 |
Wopenacc-dims |
| 62 |
Target Var(warn_openacc_dims) Warning |
| 63 |
Warn about invalid OpenACC dimensions. |
| 64 |
|
| 65 |
Enum |
| 66 |
Name(hsaco_attr_type) Type(enum hsaco_attr_type) |
| 67 |
SRAM-ECC and XNACK modes: |
| 68 |
|
| 69 |
EnumValue |
| 70 |
Enum(hsaco_attr_type) String(off) Value(HSACO_ATTR_OFF) |
| 71 |
|
| 72 |
EnumValue |
| 73 |
Enum(hsaco_attr_type) String(on) Value(HSACO_ATTR_ON) |
| 74 |
|
| 75 |
EnumValue |
| 76 |
Enum(hsaco_attr_type) String(any) Value(HSACO_ATTR_ANY) |
| 77 |
|
| 78 |
EnumValue |
| 79 |
Enum(hsaco_attr_type) String(default) Value(HSACO_ATTR_DEFAULT) |
| 80 |
|
| 81 |
mxnack= |
| 82 |
Target RejectNegative Joined ToLower Enum(hsaco_attr_type) Var(flag_xnack) Init(HSACO_ATTR_DEFAULT) |
| 83 |
Compile for devices requiring XNACK enabled. Default \"any\" if USM is supported. |
| 84 |
|
| 85 |
msram-ecc= |
| 86 |
Target RejectNegative Joined ToLower Enum(hsaco_attr_type) Var(flag_sram_ecc) Init(HSACO_ATTR_DEFAULT) |
| 87 |
Compile for devices with the SRAM ECC feature enabled, or not. Default \"any\". |
| 88 |
|
| 89 |
-param=gcn-preferred-vectorization-factor= |
| 90 |
Target Joined Enum(gcn_preferred_vectorization_factor) Var(gcn_preferred_vectorization_factor) Init(-1) Param |
| 91 |
--param=gcn-preferred-vectorization-factor=[default,32,64] Preferred vectorization factor. |
| 92 |
|
| 93 |
Enum |
| 94 |
Name(gcn_preferred_vectorization_factor) Type(int) |
| 95 |
|
| 96 |
EnumValue |
| 97 |
Enum(gcn_preferred_vectorization_factor) String(default) Value(-1) |
| 98 |
|
| 99 |
EnumValue |
| 100 |
Enum(gcn_preferred_vectorization_factor) String(32) Value(32) |
| 101 |
|
| 102 |
EnumValue |
| 103 |
Enum(gcn_preferred_vectorization_factor) String(64) Value(64) |
| 104 |
|
| 105 |
mfake-exceptions |
| 106 |
Target Var(fake_exceptions) Init(0) Undocumented |
| 107 |
; With '-mfake-exceptions' enabled, the user-visible behavior in presence of |
| 108 |
; exception handling constructs changes such that the compile-time |
| 109 |
; 'sorry, unimplemented: exception handling not supported' is skipped, code |
| 110 |
; generation proceeds, and instead, exception handling constructs 'abort' at |
| 111 |
; run time. (..., or don't, if they're in dead code.) |