diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2015-12-01 00:26:18 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@ispras.ru> | 2015-12-09 19:31:38 +0300 |
commit | 61d1318e5c651450a8217a79b6361acd026a187a (patch) | |
tree | f93be2c5bec4c16dd744edc32bcb0b8a1ce9c8af /gcc/doc/invoke.texi | |
parent | f3b131836d906a35d914fac2b97d0ff75545a3ce (diff) | |
download | gcc-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.texi | 5 |
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 |