Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] Trapping fortran I/O errorsleavingzombiempiprocesses
From: Laurence Marks (L-marks_at_[hidden])
Date: 2010-02-06 22:24:49


The following code reproduces the problem for mpif90/ifort
11.1/openmpi-1.4.1. With an empty test.input (touch test.input) some
not reproducible number of zombies processes are created.

        include "mpif.h"
        call MPI_INIT(ierr)
        call MPI_COMM_RANK(MPI_COMM_WORLD, irank, ierr)
        open (unit=10,file='test.input')
        if(irank.lt.3)then
                read(10,1,err=20)ii
        else
                read(10,1)ii
        endif
20 write(6,*)irank,ii
1 format(i4)
        call MPI_FINALIZE(ierr)
        end

N.B., if I deliberately create a format error for the read no zombies remain.

-- 
Laurence Marks
Department of Materials Science and Engineering
MSE Rm 2036 Cook Hall
2220 N Campus Drive
Northwestern University
Evanston, IL 60208, USA
Tel: (847) 491-3996 Fax: (847) 491-7820
email: L-marks at northwestern dot edu
Web: www.numis.northwestern.edu
Chair, Commission on Electron Crystallography of IUCR
www.numis.northwestern.edu/
Electron crystallography is the branch of science that uses electron
scattering and imaging to study the structure of matter.