OpenMP provides a powerful, portable, and simple means of threading applications. In some cases, however, developers should choose the flexibility of native threading APIs. The guidelines in this article help to identify whether OpenMP is an appropriate choice for a given situation.
Download Code Package: 20160519-cpuid_topo.tar.gz
Note: All information from this article has been taken from https://01.org/powertop/
THE GORY DETAILS
Let’s continue from where we left off last time. Let’s figure out the why of the equation,
P = C * V^2 * (a * f)
This article describes how to troubleshoot some common InfiniBand issues using the tools provided by the Open Fabrics Enterprise Distribution (OFED).
With automatic parallelization, the compiler detects loops that can be safely and efficiently executed in parallel and generates multithreaded code.
The success of parallelization is typically quantified by measuring the speedup of the parallel version relative to the serial version. It is also useful to compare that speedup relative to the upper limit of the potential speedup.
When confronted with nested loops, the granularity of the computations that are assigned to threads will directly affect performance. Loop transformations such as splitting and merging nested loops can make parallelization easier and more productive.
One key to attaining good parallel performance is choosing the right granularity for the application. Granularity is the amount of real work in the parallel task. If granularity is too fine, then performance can suffer from communication overhead.