[nvptx, offloading] Determine default workers at runtime
commit605219e7c74bc8039a994847729fb948230d66d3
authorCesar Philippidis <cesar@codesourcery.com>
Mon, 30 Jul 2018 08:16:52 +0000 (30 01:16 -0700)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 30 Jul 2018 08:16:52 +0000 (30 08:16 +0000)
tree6ec160ee0b78169d4c3af5743fed99bcde4813d5
parentd634309f9a8af7fe3bae54af004666291c667813
[nvptx, offloading] Determine default workers at runtime

Currently, if the user doesn't specify the number of workers for an openacc
region, the compiler hardcodes it to a default value.

This patch removes this functionality, such that the libgomp runtime can decide
on a default value.

2018-07-30  Cesar Philippidis  <cesar@codesourcery.com>
    Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Rename to ...
(PTX_DEFAULT_RUNTIME_DIM): ... this.
(nvptx_goacc_validate_dims): Set default worker and gang dims to
PTX_DEFAULT_RUNTIME_DIM.
(nvptx_dim_limit): Ignore GOMP_DIM_WORKER.

Co-Authored-By: Tom de Vries <tdevries@suse.de>
From-SVN: r263060
gcc/ChangeLog
gcc/config/nvptx/nvptx.c