[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:
parent
4075fc7024
commit
6e373d1369
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user