This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [1/3] OpenACC reductions
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Cesar Philippidis <cesar_philippidis at mentor dot com>
- Date: Tue, 3 Nov 2015 16:46:31 +0100
- Subject: Re: [1/3] OpenACC reductions
- Authentication-results: sourceware.org; auth=none
- References: <56378AE9 dot 2020905 at acm dot org> <56378CDD dot 3060804 at acm dot org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 02, 2015 at 11:18:37AM -0500, Nathan Sidwell wrote:
> This is the core execution bits of OpenACC reductions.
>
> We have a new internal fn 'IFN_GOACC_REDUCTION' and a new target hook
> goacc.reduction, to lower it on the target compiler.
So, let me start with a few questions:
1) does OpenACC allow UDRs or only the built-in reductions? If it
does not allow UDRs, do you have it covered by testcases that you
disallow parsing of them (e.g. when you have
#pragma omp declare reduction (xyz: struct S: omp_out.x += omp_in.y) initializer (omp_priv = { 5 })
#pragma acc parallel reduction (xyz: var_with_type_S)
)?
2) how do you expand the reductions in the end when targetting host fallback
or when targetting non-PTX targets?
Jakub