This is the mail archive of the
mailing list for the GCC project.
Re: Reduction Pattern ( Vectorization or Parallelization)
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Toon Moene <toon at moene dot org>,Ajit Kumar Agarwal <ajit dot kumar dot agarwal at xilinx dot com>
- Cc: "law at redhat dot com" <law at redhat dot com>,"gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>,Vinod Kathail <vinodk at xilinx dot com>,Shail Aditya Gupta <shailadi at xilinx dot com>,Vidhumouli Hunsigida <vidhum at xilinx dot com>,Nagaraju Mekala <nmekala at xilinx dot com>
- Date: Thu, 16 Jul 2015 20:38:40 +0200
- Subject: Re: Reduction Pattern ( Vectorization or Parallelization)
- Authentication-results: sourceware.org; auth=none
- References: <37378DC5BCD0EE48BA4B082E0B55DFAA41F414A1 at XAP-PVEXMBX02 dot xlnx dot xilinx dot com> <CAFiYyc0_cKUvUw-b8A4uAKSOHZeEncdNhKtnBnJeKosr=Zu5Eg at mail dot gmail dot com> <55A7F1D7 dot 8050802 at moene dot org>
On July 16, 2015 8:03:03 PM GMT+02:00, Toon Moene <firstname.lastname@example.org> wrote:
>On 07/16/2015 12:53 PM, Richard Biener wrote:
>> On Sun, Jul 5, 2015 at 1:57 PM, Ajit Kumar Agarwal
>>> For the following code
>>> For(j = 0; j <= N;j++)
>>> y = d[j];
>>> For( I = 0 ; I <8 ; i++)
>>> X(a[i]) = X(a[i]) + c[i] * y;
>> I think the issue here is dependences of X(A[i]) as A[i] might be the
>> for different i.
>In Fortran this is not allowed on the left-hand side of an assignment.
Only if x(a(I)) = ... Is an array expression, right? C doesn't have those.
>Does C have any restrictions here ?