PDA

View Full Version : [LF] I/O flushing in MPI programs


Lahey Support
08-15-2003, 01:24 AM
Hello,

I am having some difficulties with Lahey Fortran 95 I/O flushing.
Namely, I am working with a new way (chp4_mpd device) of running
distributed MPIch jobs on a cluster of Linux PC's, and the stdout seems
to be flushed *after* the program ends. An illustration is given at the
end of this message.

The same program in C compiled with gcc works well. Unfortunately I
could not compile it with g77 because it appends two dashes to the names
of the functions, unlike lf95 for which I compiled mpich.

Could someone tell me what the difference in I/O buffer flushing between
lf95 and gcc is (the mpich group said the Absoft f90 also works well,
like gcc), and how can I change this behaviour?

Thanks,
Aleksandar

The gcc-compiled program:
[address removed] exe]$ mpirun_mpd -np 9 $HPF_EXE/pigcc_static_mpd.exe
Enter the number of intervals: (0 quits)
1000000
pi is approximately 3.1415926535898797, Error is 0.0000000000000866
wall clock time = 0.083440
Enter the number of intervals: (0 quits) 0

The lf95-compiled program (note that the message comes out at the end
only):
[address removed] exe]$ mpirun_mpd -np 9 $HPF_EXE/pi_static_mpd.exe
1000000
0
Enter the number of intervals: (0 quits)
pi is approximately: 3.1415926535898790 Error is: 0.0000000000000857
Enter the number of intervals: (0 quits)

--
_____________________________________________
Donev Aleksandar
[address removed]
Physics Department, Michigan State University
(517) 432-6770
_____________________________________________


--------------------------------------------------------------------------
To unsubscribe from Fortran Forum, send a message to [address removed]
with the following command as the first and only line of the message body:
unsubscribe fortran
--------------------------------------------------------------------------