Page 1 of 1

rectangular iteration space

PostPosted: Thu Jan 24, 2008 2:52 am
by dmikh
There is a restriction for loops 2.5.1 (p42, l3-4) "The loops must form a rectangular iteration space and the bounds and stride of each loop must be invariant in every loop". But what is "rectangular iteration space"? Do the following loops form a non-rectangular iteration space?

Code: Select all
#pragma omp for collapse(3)
    for (i=1; i<10; i++)
      for (j=i; j<10; j++)
        for (k=j; k<10; k++)

Re: rectangular iteration space

PostPosted: Tue Jan 29, 2008 2:59 pm
by lfm
No, it is not rectangular. We're working on cleaning up the wording. The invariant requirement is supposed to disallow this case.