Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/openmp-stmt.c

raw
1 // OpenMP program to print Hello World
2 // using C language
3 // OpenMP header
4 #include <omp.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7
8 int main(int argc, char* argv[])
9 {
10 // Beginning of parallel region
11 #pragma omp parallel
12 {
13 printf("Hello World... from thread = %d\n", omp_get_thread_num());
14 }
15 // End of parallel region
16 }