1 /* OpenACC parallelism dimensions clauses: num_gangs, num_workers,
4 /* Copied from '../libgomp.oacc-c-c++-common/parallel-dims.c'. */
6 /* Used by 'parallel-dims.f90'. */
8 #include <gomp-constants.h>
10 #pragma acc routine seq
11 /* static */ int acc_gang ()
13 return __builtin_goacc_parlevel_id (GOMP_DIM_GANG
);
16 #pragma acc routine seq
17 /* static */ int acc_worker ()
19 return __builtin_goacc_parlevel_id (GOMP_DIM_WORKER
);
22 #pragma acc routine seq
23 /* static */ int acc_vector ()
25 return __builtin_goacc_parlevel_id (GOMP_DIM_VECTOR
);