<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><br><div>Hi <span style="font-family: arial; line-height: 23.7999992370605px; white-space: pre-wrap;">Halim,</span></div><div><font face="arial"><span style="white-space: pre-wrap;">you are right, thank you very much.</span></font></div><div><font face="arial"><span style="white-space: pre-wrap;"><br></span></font></div><div><font face="arial"><span style="white-space: pre-wrap;">--Ice</span></font></div><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2016-05-09 22:48:39, "Halim Amer" <aamer@anl.gov> wrote:
>I don't see why you couldn't step into MPI_Get_processor_name, other
>than you are linking to the wrong MPI implementation that doesn't have
>debug symbols.
>
>I tested your example with --enable-g=all when building MPICH and it was
>sufficient to step into MPI_Get_processor_name.
>
>--Halim
>
>On 5/8/16 6:56 AM, ±ù wrote:
>> Hi,
>> I want to use |gdb| to step into the code to see what's going on inside
>> the code, for example my code as below, I set a break at the line
>> MPI_Get_processor_name (processor_name, &namelen), I want to step into
>> MPI_Get_processor_name, I configure with |--enable-g=all and
>> |--enable-fast=O0, but gdb cann't step into MPI_Get_processor_name, it
>> steps into fprintf, what should I do?
>>
>> #include "mpi.h"
>> #include <stdio.h>
>> int main (int argc, char **argv)
>> {
>> int myid, numprocs;
>> int namelen;
>> char processor_name[MPI_MAX_PROCESSOR_NAME];
>>
>> MPI_Init (&argc, &argv);
>> MPI_Comm_rank (MPI_COMM_WORLD, &myid);
>> MPI_Comm_size (MPI_COMM_WORLD, &numprocs);
>> MPI_Get_processor_name (processor_name, &namelen);
>> fprintf (stderr, "Hello World! Process %d of %d on %s\n", myid,
>> numprocs, processor_name);
>> MPI_Finalize ();
>> return 0;
>> }
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> discuss mailing list discuss@mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>>
>_______________________________________________
>discuss mailing list discuss@mpich.org
>To manage subscription options or unsubscribe:
>https://lists.mpich.org/mailman/listinfo/discuss
</pre></div><br><br><span title="neteasefooter"><p> </p></span>