How to have different number of threads across different parallel region. If i have 4 threads in first parallel region and 3 threads in second parallel region, which one going to be killed (first or fourth one).
sir my question is can we avoid a for loop and call the omp_get_num_threads() just once? , I was trying to do it, but i failed, or it is explained in upcoming videos?
Excellent videos, the whole series makes better sense than most of the stuff I've seen online. Kudos!!
How to have different number of threads across different parallel region. If i have 4 threads in first parallel region and 3 threads in second parallel region, which one going to be killed (first or fourth one).
sir my question is can we avoid a for loop and call the omp_get_num_threads() just once? , I was trying to do it, but i failed, or it is explained in upcoming videos?
Just a word of caution! #pragma omp master does not have an implied barrier either on entry to, or exit from, the master construct.
where is lecture slides