Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Re : Yet another stdin problem
From: Ralph Castain (rhc_at_[hidden])
Date: 2009-10-07 12:13:42


FWIW: an upcoming version will have the ability for you to specify all
ranks to receive stdin...but that's a little ways off.

For now, only rank=0 does.

On Oct 7, 2009, at 9:42 AM, Roman Cheplyaka wrote:

> As a slight modification, you can write a wrapper script
>
> #!/bin/sh
> my_exe < inputs.txt
>
> and pass it to mpirun.
>
> 2009/10/7 Kilou Zelabia <kilou_zellabia_at_[hidden]>:
>> Ok thanks!
>> That's a solution but i was wondering if there could exist a more
>> elegant
>> one ? means without any modification at the source level
>>
>> ________________________________
>> De : Roman Cheplyaka <roman.cheplyaka_at_[hidden]>
>> À : Open MPI Users <users_at_[hidden]>
>> Envoyé le : Mer 7 Octobre 2009, 17 h 06 min 55 s
>> Objet : Re: [OMPI users] Yet another stdin problem
>>
>> Why not modify your program to read inputs.txt instead of stdin?
>>
>> 2009/10/7 Kilou Zelabia <kilou_zellabia_at_[hidden]>:
>>> Dear all,
>>>
>>> I'm trying to lunch an MPI program using the command
>>>
>>> mpirun -np 64 my_exe < inputs.txt
>>>
>>> inputs.txt actually contains the entries that are read by all
>>> processes
>>> however it seems that openmpi redirect the stdin only to the
>>> processes
>>> with
>>> rank 0. with leads to a segmentation fault on the other processes.
>>> The option "-stdin rank" doesn't help since i need all processes
>>> read the
>>> inputs.txt file.
>>>
>>> I'v tested with openmpi 1.3 and 1.2 whitout success.
>>>
>>> Thanks in advance for you help.
>>>
>>> Zellabia. S
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>>
>>
>>
>>
>> --
>> Roman I. Cheplyaka
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>
>
>
> --
> Roman I. Cheplyaka
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users