public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Alexander Monakov <amonakov@ispras.ru>
Cc: gcc-patches@gcc.gnu.org, Arutyun Avetisyan <arut@ispras.ru>
Subject: Re: [gomp4 3/8] libgomp: provide target-to-host fallback diagnostic
Date: Thu, 24 Sep 2015 07:33:00 -0000	[thread overview]
Message-ID: <20150924072627.GW1847@tucnak.redhat.com> (raw)
In-Reply-To: <1443028942-4081-4-git-send-email-amonakov@ispras.ru>

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

  reply	other threads:[~2015-09-24  7:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 17:43 [gomp4 0/8] NVPTX: initial OpenMP offloading Alexander Monakov
2015-09-23 17:22 ` [gomp4 6/8] libgomp: provide stub bar.h on nvptx Alexander Monakov
2015-09-24  8:09   ` Jakub Jelinek
2015-09-23 17:22 ` [gomp4 1/8] nvptx: remove assumption of OpenACC attrs presence Alexander Monakov
2015-09-24  7:26   ` Jakub Jelinek
2015-09-24  7:27     ` Jakub Jelinek
2015-09-23 17:22 ` [gomp4 7/8] libgomp: work around missing pthread_attr_t on nvptx Alexander Monakov
2015-09-24  8:15   ` Jakub Jelinek
2015-09-24 15:33     ` Alexander Monakov
2015-09-24 16:13       ` Jakub Jelinek
2015-09-23 17:22 ` [gomp4 8/8] libgomp: provide ICVs via env.c " Alexander Monakov
2015-09-24  8:15   ` Jakub Jelinek
2015-09-24 13:25     ` Alexander Monakov
2015-09-24 13:45       ` Jakub Jelinek
2015-09-23 17:22 ` [gomp4 2/8] nvptx mkoffload: do not restrict to OpenACC Alexander Monakov
2015-09-24  7:29   ` Jakub Jelinek
2015-10-02 19:29     ` [PR target/67822] OpenMP offloading to nvptx fails (was: [gomp4 2/8] nvptx mkoffload: do not restrict to OpenACC) Thomas Schwinge
2015-09-23 17:22 ` [gomp4 4/8] libgomp: minimal OpenMP support in plugin-nvptx.c Alexander Monakov
2015-09-24  7:34   ` Jakub Jelinek
2015-09-23 17:40 ` [gomp4 3/8] libgomp: provide target-to-host fallback diagnostic Alexander Monakov
2015-09-24  7:33   ` Jakub Jelinek [this message]
2015-09-23 17:43 ` [gomp4 5/8] libgomp: provide sem.h, mutex.h, ptrlock.h on nvptx Alexander Monakov
2015-09-24  7:43   ` Jakub Jelinek
2015-09-23 18:44 ` [gomp4 0/8] NVPTX: initial OpenMP offloading Bernd Schmidt
2015-09-23 21:44   ` Alexander Monakov
2015-09-24  7:26     ` Jakub Jelinek
2015-09-24 14:31       ` Nathan Sidwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150924072627.GW1847@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=amonakov@ispras.ru \
    --cc=arut@ispras.ru \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).