GCN back-end code
[official-gcc.git] / gcc / config / gcn / gcn.opt
blob2fd3996edbad89372979e178fc310279241b1a9e
1 ; Options for the GCN port of the compiler.
3 ; Copyright (C) 2016-2019 Free Software Foundation, Inc.
5 ; This file is part of GCC.
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.
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.
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/>.
21 HeaderInclude
22 config/gcn/gcn-opts.h
24 Enum
25 Name(gpu_type) Type(enum processor_type)
26 GCN GPU type to use:
28 EnumValue
29 Enum(gpu_type) String(carrizo) Value(PROCESSOR_CARRIZO)
31 EnumValue
32 Enum(gpu_type) String(fiji) Value(PROCESSOR_FIJI)
34 EnumValue
35 Enum(gpu_type) String(gfx900) Value(PROCESSOR_VEGA)
37 march=
38 Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_arch) Init(PROCESSOR_CARRIZO)
39 Specify the name of the target GPU.
41 mtune=
42 Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_tune) Init(PROCESSOR_CARRIZO)
43 Specify the name of the target GPU.
45 m32
46 Target Report RejectNegative InverseMask(ABI64)
47 Generate code for a 32-bit ABI.
49 m64
50 Target Report RejectNegative Mask(ABI64)
51 Generate code for a 64-bit ABI.
53 mgomp
54 Target Report RejectNegative
55 Enable OpenMP GPU offloading.
57 bool flag_bypass_init_error = false
59 mbypass-init-error
60 Target Report RejectNegative Var(flag_bypass_init_error)
62 bool flag_worker_partitioning = false
64 macc-experimental-workers
65 Target Report Var(flag_worker_partitioning) Init(1)
67 int stack_size_opt = -1
69 mstack-size=
70 Target Report RejectNegative Joined UInteger Var(stack_size_opt) Init(-1)
71 -mstack-size=<number>   Set the private segment size per wave-front, in bytes.
73 mlocal-symbol-id=
74 Target RejectNegative Report JoinedOrMissing Var(local_symbol_id) Init(0)
76 Wopenacc-dims
77 Target Var(warn_openacc_dims) Warning
78 Warn about invalid OpenACC dimensions.