This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [OpenACC 8/11] device-specific lowering
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Bernd Schmidt <bschmidt at redhat dot com>, Jason Merrill <jason at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Thu, 22 Oct 2015 08:52:41 -0400
- Subject: Re: [OpenACC 8/11] device-specific lowering
- Authentication-results: sourceware.org; auth=none
- References: <5627DD78 dot 9040302 at acm dot org> <5627EC34 dot 6020205 at acm dot org> <20151022093152 dot GJ478 at tucnak dot redhat dot com>
On 10/22/15 05:31, Jakub Jelinek wrote:
On Wed, Oct 21, 2015 at 03:49:08PM -0400, Nathan Sidwell wrote:
So, how do you expand the OACC loops on non-PTX devices (host, or say
XeonPhi)? Do you drop the IFNs and replace stuff with normal loops?
On a non ptx target (canonical example being the host), the IFN head/tail
markers get deleted. the IFN_LOOP builtin gets expanded to code that essentially
restores the original loop structure.
I don't see anything that would e.g. set the various flags that e.g. OpenMP
#pragma omp simd or Cilk+ #pragma simd sets, like loop->safelen,
loop->force_vectorize, maybe loop->simduid and promote some vars to simduid
arrays if that is relevant to OpenACC.
It won't convert them into such representations.
nathan