blob: 8996d818b3121ed4006a415d754e7d43ef47ac84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
static int bork;
void bar(void);
void foobar (void)
{
#pragma omp parallel
{
#pragma omp for lastprivate(bork)
for (bork = 0; bork < 100; bork++) {
bar();
}
}
}
|