Intel® MPI Library User's Guide for Linux* OS
Use -check_mpi option to link the resulting executable file against the Intel® Trace Collector correctness checking library. This has the same effect as when -profile=vtmc is used as an argument to mpiicc or another compiler script.
$ mpiicc -profile=vtmc test.c -o testc
Or
$ mpiicc -check_mpi test.c -o testc
To use this option, you need to:
Install the Intel® Trace Analyzer and Collector first. The tool is distributed as part of the Intel® Parallel Studio XE Cluster Edition bundle only.
Include the installation path of the Intel® Trace Collector in the VT_ROOT environment variable. Set I_MPI_CHECK_PROFILE to the <profile_name> environment variable to specify another checking library.
For more information on the Intel® Trace Analyzer and Collector, see the documentation provided with this product.