#include #ifdef _OPENMP #include #endif int main() { /*Example of a parallel loop*/ int n=7; int a[n],t[n]; #pragma omp parallel shared(a,t,n) { int tid=0; /*Dummy thread number for the case OMP is not enabled*/ #ifdef _OPENMP tid=omp_get_thread_num(); #endif #pragma omp for for (int i=0; i