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
+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
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
#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;