190
edits
Changes
m
printf("working thread num is %d \n", omp_get_thread_num());
printf("working thread num is %d \n", omp_get_thread_num());
→Walkthrough
==Case A - Using the Thread window==
What can you can see in the Thread window under OpenMP project 1? We will use the following program for the experiment. config OpenMP 2. set OpenMP
// Thread.cpp
#include <iostream>
#include <omp.h>
using namespace std;
printf("num of thread currently using is %d \n", omp_get_num_threads());
}
}
printf("\n");
printf("num of thread currently using is %d \n", omp_get_num_threads());
}
}
printf("\n");
return 0;
}
==Case B - Using the Parallel Stacks and the Parallel Watch Window==