Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

openmp on dual CPU (4 cores) strange behaviour on Xeon

boaz_sternfeld
Beginner
740 Views

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.

0 Kudos
2 Replies
Om_S_Intel
Employee
740 Views
It would be nice if you can help with sample test case.
0 Kudos
jimdempseyatthecove
Honored Contributor III
740 Views

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

0 Kudos
Reply