On Wed, Sep 23, 2015 at 08:22:17PM +0300, Alexander Monakov wrote: > This patch allows to see when target regions are executed on host with > GOMP_DEBUG=1 in the environment. > > * target.c (GOMP_target): Use gomp_debug on fallback path. > --- > libgomp/target.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libgomp/target.c b/libgomp/target.c > index 6ca80ad..1cc2098 100644 > --- a/libgomp/target.c > +++ b/libgomp/target.c > @@ -1008,6 +1008,7 @@ GOMP_target (int device, void (*fn) (void *), const > void *unused, > || !(devicep->capabilities & GOMP_OFFLOAD_CAP_OPENMP_400)) > { > /* Host fallback. */ > + gomp_debug (0, "%s: target region executing on host\n", __FUNCTION__); > struct gomp_thread old_thr, *thr = gomp_thread (); > old_thr = *thr; > memset (thr, '\0', sizeof (*thr));
Ok. Jakub