omp_in_target?

Comments and discussion of the 4.1 OpenMP Draft specifications. Comment period ends September 30, 2015. See http://openmp.org/wp/openmp-specifications/ to download the specifications. (Read Only)
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
fewl9012
Posts: 73
Joined: Mon Jul 27, 2015 4:50 pm

omp_in_target?

Post by fewl9012 »

omp_in_parallel exists, maybe add omp_in_target and/or omp_in_teams?

psxlover
Posts: 4
Joined: Mon Dec 15, 2014 2:55 am

Re: omp_in_target?

Post by psxlover »

There is omp_is_initial_device for determining if you are in a target.

fewl9012
Posts: 73
Joined: Mon Jul 27, 2015 4:50 pm

Re: omp_in_target?

Post by fewl9012 »

What if the 'target' region is executing on the initial device? Is that behavior well-defined? Is there a concept of an inactive target region, as there is with an inactive parallel region? omp_in_parallel is well defined to distinguish between in an active parallel region vs. only in inactive parallel region(s).

Locked