public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Julian Brown <julian@codesourcery.com>
Cc: Bernd Schmidt <bernds@codesourcery.com>,
	       GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [gomp4] Vector-single predication
Date: Thu, 21 May 2015 13:51:00 -0000	[thread overview]
Message-ID: <20150521134523.GW1751@tucnak.redhat.com> (raw)
In-Reply-To: <20150521143819.5bfa89b0@octopus>

On Thu, May 21, 2015 at 02:38:19PM +0100, Julian Brown wrote:
> > All functions will behave that way, or just some using some magic
> > attribute etc.?  Say will newlib functions behave this way (math
> > functions, printf, ...)? 
> 
> It's actually unclear at this point if "regular" functions are
> supported by OpenACC at all (the spec says nothing about them). They
> probably raise "interesting" questions about re-entrancy,
> synchronisation, and so on.
> 
> > For math functions e.g. it would be nice if
> > they could behave both ways (perhaps as separate entrypoints), so
> > have the possibility to say how many threads from the warp will
> > perform the operation and then work on array arguments and array
> > return value (kind like OpenMP or Cilk+ elemental functions, just
> > perhaps with different argument/return value passing conventions).
> 
> And that's something that's way outside the spec as currently defined,
> AFAIK.

Not necessarily.  GCC uses the elemental functions not just in OpenMP/Cilk+
simd regions, but also in auto-vectorized code.  So if auto-vectorization
for NVPTX target would just use the extra threads, it is relevant to OpenACC
as well.  Not to mention that OpenMP is also relevant to NVPTX.

	Jakub

      parent reply	other threads:[~2015-05-21 13:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 12:21 Bernd Schmidt
2015-05-21 12:23 ` Jakub Jelinek
2015-05-21 13:16   ` Julian Brown
2015-05-21 13:29     ` Jakub Jelinek
2015-05-21 13:42       ` Julian Brown
2015-05-21 13:45         ` Julian Brown
2015-05-21 13:51         ` 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=20150521134523.GW1751@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=bernds@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=julian@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).