Closed acalvert closed 8 years ago
When selecting all of
if (n) { for (j = 1; j < n; j++) a[j][i] = b[j][i] + 1; }
it yields
if (n) #pragma acc data { { for (j = 1; j < n; j++) a[j][i] = b[j][i] + 1; }}
Actually, this only occurs when the if statement has an else clause. It seems technically correct, but PGCC won't compile it.
Added a check in IntroDataConstructCheck and added some unit tests covering the case.
When selecting all of
it yields