Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are MPI + OpenMP codes sometimes slower than MPI alone?

MPI OpenMP slower
0
10 Posted

Why are MPI + OpenMP codes sometimes slower than MPI alone?

0
10

There are four common reasons why this might happen: • There is a portion of the code (in terms of runtime) that is not OpenMP parallelized or that contains a serializing construct such as a critical section or atomic operation; • The loops that are being parallelized with OpenMP are too small to offset the overhead required to create threads. • The OpenMP domain is spanning more than one memory domain and is seeing NUMA effects. On Hopper this would correspond to using more than six threads. • The are data consistency effects that lead to extraneous data movement (false sharing of cache lines).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.