An upgrade breaks input redirection
Bill Wichser
bill at Princeton.EDU
Tue Jul 13 15:49:19 EDT 2004
Upgrade of a cluster to Intel v8 compilers has now broken input
redirection which was functioning with a patched version of
OpennPBS_2_3_16 and mpiexec-0.73 running under a Linux 2.4.20-18.7smp
kernel.
Upgrading and compiling mpiexec-0.76 offers no help.
mpiexec code is compiled with the icc compiler. At the moment,
compiling with gcc changes nothing. The file is F90 code and looks like
this:
program io
integer :: i,j,k
real :: x,y,z
read (5,*) i,j,k,x,y,z
write (6,*) 'done: ',i,j,k,x,y,z
end program io
The PBS script simply runs this code
#!/bin/sh
#PBS -l nodes=1:ppn=1,walltime=120:00:00
cd ~bill/iotest
mpiexec -verbose ./a.out < inp
./a.out < inp
cat inp
-------
1 2 3 1.1 2.2 3.3
When run with mpiexec the error file looks like this:
forrtl: Illegal seek
forrtl: severe (39): error during read, unit 5, file stdin
Image PC Routine Line Source
a.out 08087C75 Unknown Unknown Unknown
a.out 08058DF1 Unknown Unknown Unknown
a.out 080593E8 Unknown Unknown Unknown
a.out 0804CFA0 Unknown Unknown Unknown
a.out 08049DA7 Unknown Unknown Unknown
a.out 08049F94 Unknown Unknown Unknown
a.out 42017589 Unknown Unknown Unknown
a.out 08049C31 Unknown Unknown Unknown
mpiexec: Warning: task 0 exited with status 39.
But when run with ./a.out <inp all seems well. The a.out exec was
compiled with the mpif90 command. I don't know who is at fault here,
the compiler or mpiexec. I have been told that old programs continue to
work, even with the newly compiled mpiexec, but once recompiled with the
v8 Intel compilers, all redirection breaks.
Can anyone offer suggestions on where to proceed?
Thanks,
Bill
More information about the mpiexec
mailing list