Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] mpirun w/ enable-mpi-threads spinning up cputime when app path is invalid
From: Steve Johnson (steve_at_[hidden])
Date: 2008-07-02 12:46:42

If mpirun is given an application that isn't in the PATH, then instead of
exiting it prints the error that it failed to find the executable and then
proceeds spins up cpu time. strace shows an endless stream of sched_yield().

For example, if "blah" doesn't exist:
mpirun -np 16 blah
Ditto if ./blah doesn't exist and mpirun is called as
mpirun -np 16 ./blah

OS: CentOS 5.1
Arch: x86_64
glibc/pthread: glibc-2.5-18.el5_1.1
GCC: 4.1.2-14.el5

./configure --with-tm --prefix=$HOME/openmpi --libdir=$HOME/openmpi/lib64

A qsig -s 15 will terminate the mpirun processes.

ompi_info is at is at

Also confirmed this on openSUSE 10.2,, x86_64,
glibc-2.5-34.7, gcc-4.1.3-29.

// Steve