/* * "hello world" program */ #include #include #include /* OpenMP header file */ int main(void) { #pragma omp parallel { /* run this in each thread */ printf("hello, world, from thread %d\n", omp_get_thread_num()); } return EXIT_SUCCESS; }