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