[openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin
authorTom de Vries <tom@codesourcery.com>
Wed, 2 May 2018 17:53:56 +0000 (17:53 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 2 May 2018 17:53:56 +0000 (17:53 +0000)
commitec00d3faf4e3d20906e8e6038299343f960dc49e
treef1fb8130e22dfe8536682621accc8592a7e27936
parent92243e7ceab627026b4c63604acb5b2e6486f8a3
[openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin

2018-05-02  Tom de Vries  <tom@codesourcery.com>

PR libgomp/85411
* plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
GOMP_OPENACC_DIM ...
* env.c (parse_gomp_openacc_dim): ... here.  New function.
(initialize_env): Call parse_gomp_openacc_dim.
(goacc_default_dims): Define.
* libgomp.h (goacc_default_dims): Declare.
* oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
* oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
* libgomp.map: New version "GOMP_PLUGIN_1.2". Add
GOMP_PLUGIN_acc_default_dim.
* testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
* testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.

From-SVN: r259852
libgomp/ChangeLog
libgomp/env.c
libgomp/libgomp.h
libgomp/libgomp.map
libgomp/oacc-plugin.c
libgomp/oacc-plugin.h
libgomp/plugin/plugin-nvptx.c
libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h [new file with mode: 0644]