OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.34.1.c] - Blame information for rev 823

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
void
4
work (int i, int j)
5
{
6
}
7
 
8
void
9
good_nesting (int n)
10
{
11
  int i, j;
12
#pragma omp parallel default(shared)
13
  {
14
#pragma omp for
15
    for (i = 0; i < n; i++)
16
      {
17
#pragma omp parallel shared(i, n)
18
        {
19
#pragma omp for
20
          for (j = 0; j < n; j++)
21
            work (i, j);
22
        }
23
      }
24
  }
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.