On Apr 10, 2005, at 12:30 AM, Smitha Mittinti wrote:
> I am writing a master slave program in MPI.
>
> About an hour ago I made a few minor changes to the
> slaves. After I made the changes my program won't
> allow me to read in anything. It displays the prompt
> and then displays the error message. There are no
> sends and receives before this statement. There are
> only a few dynamic allocations and variable
> declarations before this statement.
>
> The scanf statement is in the master.
>
> The problem is that it was working fine about a half
> an hour ago before I made the changes .I did not make
> any changes in the master.
>
> Please help. Why does the scanf statement not work?
I'm afraid that you really don't give enough information for us to be
helpful. My guess would be that if it once worked with LAM, then
stopped working, that LAM is not your problem. It would be helpful to
at least know what error message is being displayed - it's possible
that it would give you some indication of what is going wrong with the
application.
I would recommend using a debugger like gdb (or ddd, if you like pretty
graphics) to trace through the execution of your program. There are a
number of reasonable introductions into symbolic debuggers. Googling
for "debugging with <debugger name>" should find a couple of good
resources for the debugger of your choice. Take a look at the LAM/MPI
FAQ for information on debugging MPI applications with LAM/MPI:
http://www.lam-mpi.org/faq/category6.php3
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|