LLVM OpenMP
runtime
test
transform
split
parallel-split-intfor.c
Go to the documentation of this file.
1
// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
2
// RUN: | FileCheck %s --match-full-lines
3
4
#include <stdlib.h>
5
#include <stdio.h>
6
7
int
main
() {
8
printf(
"do\n"
);
9
#pragma omp parallel num_threads(1)
10
{
11
#pragma omp split counts(2, omp_fill, 2)
12
for
(
int
i
= 0;
i
< 8; ++
i
)
13
printf(
"i=%d\n"
,
i
);
14
}
15
printf(
"done\n"
);
16
return
EXIT_SUCCESS;
17
}
18
19
// CHECK: do
20
// CHECK-NEXT: i=0
21
// CHECK-NEXT: i=1
22
// CHECK-NEXT: i=2
23
// CHECK-NEXT: i=3
24
// CHECK-NEXT: i=4
25
// CHECK-NEXT: i=5
26
// CHECK-NEXT: i=6
27
// CHECK-NEXT: i=7
28
// CHECK-NEXT: done
i
#define i
Definition
kmp_stub.cpp:88
main
int main()
Definition
parallel-split-intfor.c:7
Generated on
for LLVM OpenMP by
1.14.0