Intel® Advisor Help

Control Collection with an MPI_Pcontrol Function

By default, Intel® Advisor analyzes performance of a whole application. In some cases, you may want to focus on the most time-consuming section or disable collection for the initialization or finalization phases. This can decrease collection overhead.

Intel Advisor supports the MPI region control with the MPI_Pcontrol() function. This function allows you to enable and disable collection for specific application regions in the source code. The region control affects only MPI and OpenMP* metrics, while other metrics are collected for the entire application.

To use the function, add it to your application source code as follows:

Note

Intel Advisor accepts only 0 and 1 arguments for the MPI_Pcontrol() function. You can use other numbers to mark code regions, but Intel Advisor ignores them.

For code snippet examples, see Region Control with MPI_Pcontrol.

See Also