On Mon, Jan 15, 2018 at 11:39:28AM +0100, Tom de Vries wrote:
> > Does OpenACC have some term for the 3 dimensions/kinds of parallelism?
> 
> openacc spec: "OpenACC exposes these three levels of parallelism via gang,
> worker and vector parallelism."
> 
> So, maybe we abbreviate to: 'parlevel' or 'par_level'?
> 
> > Is there some enum describing those 3 already?
> 
> There's no enum type in openacc.h or gomp-constants.h.
> 
> There's an enumeration of int constants from gomp-constants.h:
> ...
> #define GOMP_DIM_GANG   0
> #define GOMP_DIM_WORKER 1
> #define GOMP_DIM_VECTOR 2
> ...
> which I'm currently using as argument.
> 
> Given the amount of trouble that having an enum type as argument for
> acc_on_device has given us, I'm not sure that we want an enum type as
> argument for these builtins. [ See the comments and kludge related to c++ in
> the https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01529.html patch for
> PR82391 Fold acc_on_device with const arg. ]

Sure, the argument to the builtin should be just int.  I'm talking about
what would users use and what would be documented in extend.texi.
It can be just number of course.  parlevel is fine for me.

        Jakub

Reply via email to