[mvapich-discuss] Problem with reading parameters from stdin

Jonathan Perkins perkinjo at cse.ohio-state.edu
Thu Apr 16 13:53:22 EDT 2015


Hi Jerry.  I do not know of a direct option that you can use.  However
wrapping your program with some script might help you.

Can you try something like:
mpirun -np 2 sh -c 'if [ "$MV2_COMM_WORLD_RANK" != "0" ]; then exec 0<&- &&
args_mpi ; else args_mpi < namelist.input; fi'

On Thu, Apr 16, 2015 at 12:42 PM Liu Jianyu <jerry_leo at msn.com> wrote:

> Hi,
>
>
> I have a problem with reading namelist from stdin for the MPI run if built
> ARPS with mvapich2 2.0b
>
> For example,
>
>     mpirun -np 12 arps_mpi  < namelist.input
>
> It  aborted with "process reading stdin too slowly" immediately.
>
> It is required that only one processor ( the root processor with rank0)
> reads the stdin for configuration parameters.  In the IBM Parallel
> Operatin Environment, there is an option "stdinmode 0" instructs
> POE to allow only the processor with rank 0 read the stdin.
>
> Just wondering how to do this way with mvapich2 ?
>
>
> Here are the output of ' mpiname -a'
>
> ./mpiname -a
> MVAPICH2 2.0b Fri Nov  8 11:17:40 EST 2013 ch3:nemesis
>
> Compilation
> CC: icc    -DNDEBUG -DNVALGRIND -O2
> CXX: icpc   -DNDEBUG -DNVALGRIND -O2
> F77: ifort   -O2
> FC: ifort   -O2
>
> Configuration
> --prefix=/nuist/p/public/app/mvapich2/2.0b/intel  \
> --with-ib-libpath=/usr/lib64   \
> --with-ib-include=/usr/include  \
> --with-ibverbs-include=/usr/include \
> --with-ibverbs-lib=/usr/lib64  \
> --with-ibverbs=/  \
> --enable-f77   \
> --enable-fc  \
> --with-device=ch3:nemesis:ib,tcp
>
>
> Appreciating any comments
>
> Regards
>
>
> Jerry
>
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20150416/499cf31c/attachment.html>


More information about the mvapich-discuss mailing list