source:
CIVL/mods/dev.civl.com/examples/omp/sharedVar2.cvl@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 142 bytes | |
| Line | |
|---|---|
| 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.
