To check how the configuration file influences the trace collection process, run four processes of the poisson sample code with the following configuration file:
Create a new configuration file.
Type in the following parameters:
LOGFILE-FORMAT STFSINGLE ACTIVITY MPI OFF STATE MPI:*Allreduce* ON
Save the configuration file, for example, filter.conf.
Set the VT_CONFIG environment variable to the directory that contains the configuration file:
Run the application.
$ mpirun -trace -n 4 ./poisson
> mpiexec -n 4 poisson.exe
To check the results, do the following:
Check your work:
Open the resulting trace file poisson.single.stf in Intel® Trace Analyzer.
In the Function Profile, right-click Group MPI and select Ungroup Group MPI from the context menu.
Go to the Load Balance tab of the Function Profile to see how the MPI_Allreduce function is distributed among the four processes.
Go to Charts > Event Timeline to see the activities in each of the four processes individually.
The result looks like:
You can see that the trace data was collected only for the MPI_Allreduce function.