source:
CIVL/mods/dev.civl.abc/examples/omp/simd.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 166 bytes | |
| Line | |
|---|---|
| 1 | #include <omp.h> |
| 2 | |
| 3 | |
| 4 | int main () |
| 5 | { |
| 6 | int a[32]; |
| 7 | #pragma omp simd lastprivate(a) simdlen(8) safelen(16) |
| 8 | for (int i = 0; i < 32; i++) |
| 9 | a[i] = i; |
| 10 | |
| 11 | return a[0]; |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
