source: CIVL/examples/omp/parallel.c@ dfb0fef

1.23 2.0 main test-branch
Last change on this file since dfb0fef was 69d79e8, checked in by Michael Rogers <mrogers08@…>, 12 years ago

Updated translation of civl for loop in parallel section to handle domain.
Included simple example.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1442 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 134 bytes
Line 
1#include <omp.h>
2#include <civlc.h>
3
4#define THREAD_MAX 4
5
6int main ()
7{
8 int x;
9 #pragma omp parallel shared(x)
10 {
11 x = 0;
12 }
13}
Note: See TracBrowser for help on using the repository browser.