This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reduction Pattern ( Vectorization or Parallelization)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]