source:
CIVL/mods/dev.civl.com/examples/omp/sharedVar2.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 142 bytes | |
| Rev | Line | |
|---|---|---|
| [170ff7f] | 1 | #include <omp.h> |
| 2 | #include <stdio.h> | |
| 3 | ||
| 4 | void f() { | |
| 5 | #pragma omp for | |
| 6 | for (int i=1; i<3; i++); | |
| 7 | } | |
| 8 | ||
| 9 | int main(){ | |
| 10 | #pragma omp parallel | |
| 11 | { | |
| 12 | f(); | |
| 13 | } | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
