Dear lam-mpi users and developers,
I have some problems when running a program with mpirun and reading
standard input from a file. If I compile the following silly fortran
code
program read_variable
implicit double precision (a-h,o-z)
include 'mpif.h'
call MPI_init(ie)
call MPI_comm_rank(MPI_COMM_WORLD,myid,ie)
if (myid.eq.0) read*,a
call MPI_finalize(ie)
stop
end
with the command mpif77 "mpif77 sillycode.f -o sillycode" and I give the
commands
echo 1 > inputfile
mpirun -np 2 ./sillycode < inputfile
the program still waits reading from the terminal. If I understand
correctly in the mpirun man page, such a redirection can be done.
I booted lam-mpi with the command "lamboot -v lamhosts", where the file
lamhosts contains this line "mycomputer cpu=2".
My laminfo gives the following output
LAM/MPI: 7.1.1
Prefix: /usr/
Architecture: i686-pc-linux-gnu
Configured by: root
Configured on: Tue Oct 5 09:00:30 CEST 2004
Configure host: mycomputer
Memory manager: ptmalloc2
C bindings: yes
C++ bindings: yes
Fortran bindings: yes
C compiler: gcc
C++ compiler: g++
Fortran compiler: g77
Fortran symbols: double_underscore
C profiling: yes
C++ profiling: yes
Fortran profiling: yes
C++ exceptions: no
Thread support: yes
ROMIO support: yes
IMPI support: no
Debug support: no
Purify clean: no
SSI boot: globus (API v1.1, Module v0.6)
SSI boot: rsh (API v1.1, Module v1.1)
SSI boot: slurm (API v1.1, Module v1.0)
SSI coll: lam_basic (API v1.1, Module v7.1)
SSI coll: shmem (API v1.1, Module v1.0)
SSI coll: smp (API v1.1, Module v1.2)
SSI rpi: crtcp (API v1.1, Module v1.1)
SSI rpi: lamd (API v1.0, Module v7.1)
SSI rpi: sysv (API v1.0, Module v7.1)
SSI rpi: tcp (API v1.0, Module v7.1)
SSI rpi: usysv (API v1.0, Module v7.1)
SSI cr: self (API v1.0, Module v1.0)
I also attach the logs.tar.bz2 file, containing the make.LOG, config.LOG
and make_install.LOG files.
Thank you in advance for your help!
Carlo
|