added some more info regarding the OMP implementation

This commit is contained in:
Volker Fischer 2020-06-21 07:52:59 +02:00
parent e705dfaed9
commit e9aef3474c

View File

@ -1001,6 +1001,8 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE
// have an issue using OMP in the OnTimer() function. Even if #pragma omp parallel for is used on a trivial
// for loop for testing, still the CPU usage goes to very high values -> What is the cause of this issue?
// NOTE Most probably it is the overhead of threads creation/destruction which causes this effect.
// See https://software.intel.com/content/www/us/en/develop/articles/performance-obstacles-for-threading-how-do-they-affect-openmp-code.html
// "[...] overhead numbers are high enough that it doesnt make sense to thread that code. In those cases, were better off leaving the code in its original serial form."
# pragma omp parallel for
#endif
for ( int i = 0; i < iNumClients; i++ )