Re: [Myrinet] mpich-gm-1.2.4..8a and IO from STDIN
Pete Wyckoff <[email protected]>
| Newsgroups | gmane.network.myrinet.general |
|---|---|
| Message-ID | <[email protected]> |
[email protected] said: > When running a Fortran program compiled with mpif90 using the Intel 6.0 > compiler, we see a problem with redirected input files in that the > program will not read. If there is an explicit open, without the > redirect, this is not an issue. Testing with mpich-1.2.4 on a non-gm > host shows no problems. > > The command we use is "mpirun -np 1 test.exe <test.inp" executed on a > node. > > The output: > > Input/Output Error 174: Illegal seek > > In Procedure: main program > At Line: 12 > > Statement: REWIND > Unit: 5 > Connected To: Stdin > Form: Formatted > Access: Sequential > Records Read : 0 > Records Written: 0 [...] > do nid=0,nodesm1 > if(nid.eq.myid)then > ! open(unit=5 ,file='test.inp',status='old') > rewind 5 While I'm not a heavy FORTRAN programmer, is it not the case that the REWIND above turns into lseek(5, SEEK_SET, 0)? It's not good to seek on a pipe or socket. Do other FORTRAN libraries hide this error from the user somehow? Weird that gm would give you different results, though. Perhaps you should send a valid test case with an example "test.inp" file as an actual bug report to [email protected] and see what they have to say about it. -- Pete