This section describes the steps you need to do before you start using the Intel® Trace Analyzer and Collector.
To perform all the steps described in this tutorial, you will need the following software installed on your system:
- Intel® compilers
- Intel® MPI Library
- Intel® Trace Analyzer and Collector
All of these products are installed as part of Intel® Parallel Studio XE Cluster Edition.
Setting Up the Environment Variables
Set the required environment variables by sourcing the psxevars.c[sh] script available at <install-dir>/parallel_studio_xe_<version>.x.xxx/bin, where <install-dir> is the Intel® Parallel Studio XE Cluster Edition installation directory. For example:
$ source psxevars.sh
Open the command prompt from Start > Intel Parallel Studio XE version > Compiler and Performance Libraries > Intel 64 Visual Studio version environment. This will set all required environment variables and you will be ready to trace your applications.
Creating Trace Files
To trace the poisson application, go to <install-dir>/examples/poisson and copy its contents into your working directory, then trace the application:
Compile the application running the make command. Adjust the Makefile, if necessary.
Run the application with the -trace option of mpirun:
$ mpirun -n 4 -trace ./poisson
Compile all components of the poisson application from the compiler command prompt with the -trace option. The basic command line for Fortran programs is:
> mpiifort -trace myApp.f90
Run the application to generate a tracefile:
> mpiexec -n 4 myApp.exe
For your convenience, this tutorial comes with a set of trace files available at <install-dir>/examples/traces.
Once you have the trace data available for the poisson application, you are ready to start the analysis.