Reduction Pattern ( Vectorization or Parallelization)
Toon Moene
toon@moene.org
Thu Jul 16 18:03:00 GMT 2015
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
More information about the Gcc
mailing list