1.23
2.0
main
test-branch
|
Last change
on this file since d72bcd6 was 2aec900, checked in by Matthew B. Dwyer <matthewbdwyer@…>, 11 years ago |
|
Added test with simple "omp for" and "omp single private(i)". The former has a single non-singleton ample set and the latter has 23! How can this be?
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1893 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
168 bytes
|
| Line | |
|---|
| 1 | #include <omp.h>
|
|---|
| 2 | #define N 10
|
|---|
| 3 |
|
|---|
| 4 | int main (int argc, char * argv[]){
|
|---|
| 5 | double a[N];
|
|---|
| 6 | int i;
|
|---|
| 7 |
|
|---|
| 8 | #pragma omp parallel
|
|---|
| 9 | #pragma omp for
|
|---|
| 10 | for(i=0; i<N; i++)
|
|---|
| 11 | a[i] = 0;
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.