Tutorial

Analyze MPI Applications with Intel® Trace Analyzer and Collector and Intel® VTune™ Profiler

ID 773180
Date 3/31/2023
Public

Prerequisites

Required Software

Make sure you have installed the latest Intel® MPI Library and Intel® oneAPI DPC++/C++ Compiler or Intel® Fortran Compiler.

This sets the required environment variables for compilers, the Intel MPI Library, and Intel Trace Analyzer and Collector, and you are ready to trace your applications.

For more information see Intel® HPC Toolkit System Requirements

NOTE:

Intel® VTune™ Profiler's Application Performance Snapshot provides overall performance characteristics of an MPI enabled application using a simple interface with faster time to results. VTune Profiler helps identify imbalances and communication issues on a single node. As a result, Intel® Trace Analyzer and Collector will no longer be included in the Intel® HPC Toolkit. It continues to be downloadable as a standalone package and it will be discontinued in 2025 or later. Customers who have- purchased Intel® Priority Support will continue to receive support. Please see Intel Trace Analyzer and Collector deprecation article for more information.

Setting Up the Environment

Linux* OS:

Set the required environment variables by executing the setvars script .

On Linux:

source /opt/intel/oneapi/setvars.sh

On Windows:

“C:\Program Files (86)\Intel\oneAPI\setvars.bat”

Creating Trace Files

Find the poisson application source code attached to this document, download and extract the Intel® Trace Analyzer and Collector Poisson Sample archive to your working directory. You are then ready to trace the application:

Linux* OS:

  1. Compile the application by running the make command. Adjust the Makefile, if necessary.

  2. Run the application:

    $ make run

Windows* OS:

From the command prompt you opened in the previous step, do the following:

  1. Compile the application by running the build.bat file:

    > build.bat release
  2. Run the application to generate a trace file:

    > build.bat run