source: CIVL/examples/omp/DataRaceBench/micro-benchmarks/doall1-orig-no.c@ e5cec5ae

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since e5cec5ae was 36a61f3, checked in by Ziqing Luo <ziqing@…>, 9 years ago

Commit DataRaceBench into CIVL examples

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@4225 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 142 bytes
Line 
1// one dimension array computation
2int i, a[100];
3int 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.