icp/oer/courses/c-openmp/sections/01-introduction/00-parallel/solution.c

14 lines
302 B
C
Raw Normal View History

2018-05-05 22:18:02 +00:00
#include <stdio.h>
#include <unistd.h>
#include <omp.h>
#include <time.h>
int main(int argc, const char *argv[])
{
// To execute the code in parallel insert the omp parallel pragma below:
#pragma omp parallel
printf("Hello World from thread: %d\n", omp_get_thread_num());
return 0;
}