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