[openacc] Add oacc_get_min_dim

Expose oacc_min_dims to backends.

2019-01-07  Tom de Vries  <tdevries@suse.de>

	* omp-offload.c (oacc_get_min_dim): New function.
	* omp-offload.h (oacc_get_min_dim): Declare.

From-SVN: r267623
This commit is contained in:
Tom de Vries 2019-01-07 08:09:40 +00:00 committed by Tom de Vries
parent 4075fc7024
commit 6e373d1369
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-01-07 Tom de Vries <tdevries@suse.de>
* omp-offload.c (oacc_get_min_dim): New function.
* omp-offload.h (oacc_get_min_dim): Declare.
2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
PR target/88521

View File

@ -580,6 +580,13 @@ oacc_get_default_dim (int dim)
return oacc_default_dims[dim];
}
int
oacc_get_min_dim (int dim)
{
gcc_assert (0 <= dim && dim < GOMP_DIM_MAX);
return oacc_min_dims[dim];
}
/* Parse the default dimension parameter. This is a set of
:-separated optional compute dimensions. Each specified dimension
is a positive integer. When device type support is added, it is

View File

@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see
#define GCC_OMP_DEVICE_H
extern int oacc_get_default_dim (int dim);
extern int oacc_get_min_dim (int dim);
extern int oacc_fn_attrib_level (tree attr);
extern GTY(()) vec<tree, va_gc> *offload_funcs;