public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Kwok Cheung Yeung <kcy@codesourcery.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: Nested declare target support
Date: Tue, 8 Dec 2020 17:45:13 +0100	[thread overview]
Message-ID: <20201208164513.GH3788@tucnak> (raw)
In-Reply-To: <0437a064-2787-5cc6-9fb0-6153a5f9af30@codesourcery.com>

On Fri, Nov 20, 2020 at 04:41:15PM +0000, Kwok Cheung Yeung wrote:
> Hello
> 
> > New OpenMP 5.0 features that won't be available in GCC 9, are planned for GCC 10
> > or later versions as time permits:
> > 
> ...
> > - nested declare target support
> 
> You said in an email two years ago that nested declare target was not
> supported yet. I do not see any patches that claim to implement this since
> then, but when I ran a quick test with a trunk build:
> 
> #pragma omp declare target
>   #pragma omp declare target
>     int foo() { return 1; }
>   #pragma omp end declare target
>   int bar() { return 2; }
> #pragma omp end declare target

> It looks like this was written to handle nesting to begin with (since at
> least 2013) by making current_omp_declare_target_attribute (which
> effectively tracks the nesting level) an integer. Is there anything that is
> currently missing for nested declare target support?

We used to reject omp declare target with clauses in between declare target
without clauses, but that restriction has been lifted, so I don't know what
is missing, perhaps just add testcases that aren't covered in the testsuite
already.  I'm a little bit worried about the interaction between declare
target with nohost vs. normal one etc.
But to answer the question, I don't remember anymore why it was on the
unfinished list.

	Jakub


      reply	other threads:[~2020-12-08 16:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 17:16 [committed 0/4] (Partial) OpenMP 5.0 support for GCC 9 Jakub Jelinek
2018-11-08 20:39 ` Rainer Orth
2018-11-08 20:46   ` Jakub Jelinek
2018-12-14 20:56 ` Thomas Schwinge
2018-12-14 21:03   ` Jakub Jelinek
2020-11-20 16:41 ` Nested declare target support Kwok Cheung Yeung
2020-12-08 16:45   ` Jakub Jelinek [this message]

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=20201208164513.GH3788@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kcy@codesourcery.com \
    /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).