expand aggregated message

Expand the specified or most recent message.

Syntax

expand aggregated message [msg,…]

Parameters

msg

A message ID.

Default: 0.

Description

This command is only useful when debugging massively parallel applications, such as MPI.

This command expands the specified messages. If you do not specify a message ID, the debugger expands the most recently added message.

The root debugger collects the outputs from the leaf debuggers and presents you with an aggregated output. In most cases, this aggregation works fine, but it can be an impediment if you want to know the exact output from certain leaf debuggers. To remedy this, the debugger assigns a unique message ID number to each aggregated message and saves the message in the message list.

You can control the length of the message list using the $aggregatedmsghistory debugger variable. If you set this variable to the default, 0, the debugger records as many messages as the system will allow.

Example

(idb) 
   [0:15] ------------------
   [0:15] object file name: /home/bin/mpich-1.2.4/examples/cpi
   [0:15] Reading symbolic information ...   [0:15] done
%1 [0:15] Attached to process id [9977;10093]  ....
   [1:15] stopped at [ __select(...) 0x4010e90e]
   [0] stopped at [void* MPIR_Breakpoint(void):113 0x806d4c7]
   [1:15]

(idb) 
   [0:15]      17     int  namelen, ind;
   [0:15]      18     char processor_name[MPI_MAX_PROCESSOR_NAME];
   [0:15]      19     int gate = 0;
   [0:15]      20
   [0:15] >    21     MPI_Init(&argc,&argv);
   [0:15]      22     MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
   [0:15]      23     MPI_Comm_rank(MPI_COMM_WORLD,&myid);
   [0:15]      24     MPI_Get_processor_name(processor_name,&namelen);
   [0:15]      25

(idb)  show aggregated message
%1 [0:15] Attached to process id [9977;10093]  ....
(idb)  expand aggregated message 1
%1 [0:15] Attached to process id [9977;10093]  ....
 [1] Attached to process id 9981  ....
 [2] Attached to process id 9989  ....
 [0] Attached to process id 9977  ....
 [3] Attached to process id 9997  ....
 [4] Attached to process id 10005  ....
 [5] Attached to process id 10013  ....
 [6] Attached to process id 10021  ....
 [7] Attached to process id 10029  ....
 [8] Attached to process id 10037  ....
 [9] Attached to process id 10045  ....
 [10] Attached to process id 10053  ....
 [11] Attached to process id 10061  ....
 [12] Attached to process id 10069  ....
 [14] Attached to process id 10085  ....
 [15] Attached to process id 10093  ....
 [13] Attached to process id 10077  ....

(idb) 

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.