source:
CIVL/examples/omp/DataRaceBench/micro-benchmarks/doall2-orig-no.c@
e5cec5ae
| Last change on this file since e5cec5ae was 36a61f3, checked in by , 9 years ago | |
|---|---|
|
|
| File size: 198 bytes | |
| Line | |
|---|---|
| 1 | // Two-dimensional array computation |
| 2 | int i,j; |
| 3 | int a[100][100]; |
| 4 | int main() |
| 5 | { |
| 6 | #pragma omp parallel for private(j) |
| 7 | for (i=0;i<100;i++) |
| 8 | for (j=0;j<100;j++) |
| 9 | a[i][j]=a[i][j]+1; |
| 10 | return 0; |
| 11 | } |
| 12 |
Note:
See TracBrowser
for help on using the repository browser.
