summaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2015-12-01 00:26:18 +0300
committerAlexander Monakov <amonakov@ispras.ru>2015-12-09 19:31:38 +0300
commit61d1318e5c651450a8217a79b6361acd026a187a (patch)
treef93be2c5bec4c16dd744edc32bcb0b8a1ce9c8af /gcc/doc/invoke.texi
parentf3b131836d906a35d914fac2b97d0ff75545a3ce (diff)
downloadgcc-61d1318e5c651450a8217a79b6361acd026a187a.tar.gz
nvptx backend: add -mgomp option and multilib
Since OpenMP offloading requires both soft-stacks and "uniform SIMT", both non-traditional codegen variants, I'm building a multilib variant with those enabled. This patch adds option -mgomp which enables -msoft-stack plus -muniform-simt, and builds a multilib with it. * config/nvptx/nvptx.c (nvptx_option_override): Handle TARGET_GOMP. * config/nvptx/nvptx.opt (mgomp): New option. * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New. * doc/invoke.texi (mgomp): Document.
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index c971d83038f..84a676ad286 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -19088,6 +19088,11 @@ all-ones bitmasks for each warp, indicating current mode (0 outside of SIMD
regions). Each thread can bitwise-and the bitmask at position @code{tid.y}
with current lane index to compute the master lane index.
+@item -mgomp
+@opindex mgomp
+Generate code for use in OpenMP offloading: enables @option{-msoft-stack} and
+@option{-muniform-simt} options, and selects corresponding multilib variant.
+
@end table
@node PDP-11 Options