public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Cesar Philippidis <cesar@codesourcery.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	       Nathan Sidwell <nathan_sidwell@mentor.com>
Subject: Re: openacc reference reductions
Date: Fri, 08 Apr 2016 07:44:00 -0000	[thread overview]
Message-ID: <20160408074358.GO19207@tucnak.redhat.com> (raw)
In-Reply-To: <20160408074054.GN19207@tucnak.redhat.com>

On Fri, Apr 08, 2016 at 09:40:54AM +0200, Jakub Jelinek wrote:
> So, you can do all the checking there.  Say on OMP_CLAUSE_REDUCTION
> for the ORT_ACC_PARALLEL check the flags if they include GOVD_PRIVATE
> or GOVD_FIRSTPRIVATE, if yes, complain.  Also check if GOVD_MAP is included,

Though,
void f1 (int sum)
{
  #pragma acc parallel reduction(+:sum) firstprivate(sum)
    ;
}
void f2 (int sum)
{
  #pragma acc parallel reduction(+:sum) private(sum)
    ;
}
is already rejected in the FE, so not sure why you want to deal with that.

	Jakub

  reply	other threads:[~2016-04-08  7:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 15:14 Cesar Philippidis
2016-02-09 15:33 ` Nathan Sidwell
2016-02-09 16:17   ` Cesar Philippidis
2016-02-22 15:34     ` Cesar Philippidis
2016-02-22 16:23       ` Nathan Sidwell
2016-04-06  1:54       ` Cesar Philippidis
2016-04-06 14:23         ` Jakub Jelinek
2016-04-06 20:21           ` Cesar Philippidis
2016-04-07  9:57             ` Jakub Jelinek
2016-04-08  4:34               ` Cesar Philippidis
2016-04-08  7:41                 ` Jakub Jelinek
2016-04-08  7:44                   ` Jakub Jelinek [this message]
2016-04-08 14:14                   ` Nathan Sidwell
2016-04-08 14:21                     ` Jakub Jelinek
2016-04-08 14:46                     ` Cesar Philippidis
2016-04-08 14:49                       ` Nathan Sidwell
2016-04-08 14:35                   ` Cesar Philippidis
2016-04-08 15:30                     ` Jakub Jelinek
2021-04-26 10:35 ` [OpenACC] Don't compile libgomp testcases with '-w' (was: openacc reference reductions) Thomas Schwinge

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=20160408074358.GO19207@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=cesar@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=nathan_sidwell@mentor.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).