Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Using omp_set_dynamic(.true.)

$
0
0

My Fortran program has one parallel region which it stays in most of the time and uses openMP TASK extensively.

Since my program can take several minutes to run I wish to yield some processing to the user to allow him to go about other tasks on his workstation while he waits for my program.

So I call omp_set_dynamic(.true.)  and mkl_set_dynamic(1) before I enter my parallel region. When using MKL, it is called only by my master thread and there are no other tasks running.

How often does the openMP and MKL adjust their number of threads used ?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>