Multi-core example with OpenMP slower than single core?

Steve Nuchia
Total Points:
2,237
Status Points:
1,737
Brown Belt
October 11, 2008 10:31 PM PDT
Rate
 
#1
There is a lot of overhead in OpenMP.  It will run slower unless the loop takes a significant fraction of a second single-threaded.  Tens of milliseconds, minimum.
Also, if the task if memory bandwidth bound rather than compute or cache bound, it will run no faster parallelized, regardless of the API used.  At least on most single-socket hardware.  You have to know your system architecture here.

 



Intel Software Network Forums Statistics

8446 users have contributed to 31554 threads and 100408 posts to date.
In the past 24 hours, we have 7 new thread(s) 35 new posts(s), and 45 new user(s).

In the past 3 days, the most popular thread for everyone has been Evaluation of if statements The most posts were made to TBB on linux segfaulting The post with the most views is Quoting - Lorri Menard (In

Please welcome our newest member tconrado