- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
My executable called 'LoadLibrary' that loades a dllthat areusing OpenMP and the behaviour is good
Now I do LoadLibray to a differnt dll that also use OpenMP and the performace are going up and down.
If I use only on LoadLibrary no matter which dll it will wor fine.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would be nice if you can help with sample test case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This sounds as both DLLs are starting there own OpenMP thread pool (for use within each respective DLL).
Try setting the KMP_BLOCK_TIME=0 (environment variable) or if your version of the OpenMP runtime library has a callable function to set the block time to 0 then try that.
Without the above, you will also experienct this problem running an application that uses OpenMP and which calls the DLL itself using a different OpenMP thread pool.
Jim Dempsey

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page