- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi: I have discovered that setting KMP_BLOCKTIME=0 results in the best performance of my Fortran code. (Not by much, really, but it is measurable over our entire test suite.) Is it possible to set this attribute through an API call? I don't want to depend on the end user having to set environment variables.
Also related, there are some loops for which the GCC GOMP library gives the best results when the scheduling is declared as "guided". When compiled with the Intel compiler, however, it appears best to not declare the schedule as guided. Is there an API function which can control the schedule for a given loop?
Thanks,
Allen
- Tags:
- Parallel Computing
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you find these missing in your favorite docs?
http://openmp.org/mp-documents/OpenMP3.1-CCard.pdf
What is difficult to find documented is how schedule guided and auto may be related for a given implementation.
https://software.intel.com/en-us/articles/openmp-loop-scheduling
As you hint that you want to change it according to which library is running, it seems you might be interested in schedule(runtime).
On linux, Intel libiomp5 supports the libgomp internal function calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the pointers. I was able to add kmp_set_blocktime to my code. That works well.
The schedule has a smaller impact so I guess I will just let that be.
Is this exactly what's in my Composer XE installation: https://www.openmprtl.org/
Thanks,
Allen
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page