Specify the STATE option in the configuration file to define the function that matches the pattern.

To do this:

  1. Create a new configuration file.

  2. In the configuration file, specify STATE to collect the trace data for the MPI_Allreduce  and MPI_Sendrecv functions:

    STATE MPI:*Allreduce* ON
    STATE MPI:*Sendrecv* ON
  3. Save the configuration file: my_settings_state.conf.

  4. Set the VT_CONFIG environment variable to the directory that contains the configuration file:

    VT_CONFIG=/<configuration file path name>/my_settings_state.conf
  5. Run the application.

    Linux* OS:

    $ mpirun -trace -n 4 ./poisson

    Windows* OS:

    > mpiexec -n 4 poisson.exe

Key Terms

Configuration File

For more complete information about compiler optimizations, see our Optimization Notice.