LLVM OpenMP
fill_first.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
7int main() {
8 printf("do\n");
9#pragma omp split counts(omp_fill, 2)
10 for (int i = 0; i < 7; ++i)
11 printf("i=%d\n", i);
12 printf("done\n");
13 return EXIT_SUCCESS;
14}
15
16// CHECK: do
17// CHECK-NEXT: i=0
18// CHECK-NEXT: i=1
19// CHECK-NEXT: i=2
20// CHECK-NEXT: i=3
21// CHECK-NEXT: i=4
22// CHECK-NEXT: i=5
23// CHECK-NEXT: i=6
24// CHECK-NEXT: done
int main()
Definition fill_first.c:7
#define i
Definition kmp_stub.cpp:88