This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reduction Pattern ( Vectorization or Parallelization)
- From: Toon Moene <toon at moene dot org>
- To: Richard Biener <richard dot guenther at gmail dot com>, 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:03:03 +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>
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;
}
Fig(1).
I think the issue here is dependences of X(A[i]) as A[i] might be the same
for different i.
In Fortran this is not allowed on the left-hand side of an assignment.
Does C have any restrictions here ?
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news