Adams Samuel D Contr AFRL/HEDR wrote:
> I am wondering if you guys know how to get unbufferd io to work. I am
> working on one of our MPI programs, and I am now getting a segmentation
> fault. I am trying to track down the guilty code with write(0,*)
> statements which should go to stderr, but the output looks like that it
> is still being buffered. I presume that the MPI is doing the buffering
> and when the segmentation fault happens, the MPI stuff still hasn't
> flushed the buffer. Do you know of any way to manually flush the MPI
> buffer, or a better way to track down the bug?
>
stdout behavior depends on the run-time and compile and run-time options
of the compiler in use, as well as on the characteristics of the MPI.
Only a few Fortran compilers would connect unit 0 to stderr by default.
"the bug" might consist of the expectation that all Fortran compilers
and all MPI implementations will behave in a certain way.
|