[mpich-discuss] Can I run MPI program without mpirun/mpiexec?

Mário Costa mario.silva.costa at gmail.com
Mon Nov 23 06:24:19 CST 2009


Hi,

I have never done it but, I would say try it with mpiexec and print
the arv/arc contents then use the values sent by mpiexec to initialize
them inside your code, then pass them to MPI_Init()  ...

Let me know if it works ....

Regards,
Mário

2009/11/20 junli gu <gujunli at gmail.com>:
> I need to run multi-process mpi programs. Is it possible that run them
> without mpirun command? to include everything needed into one stand alone
> binary?
>
> 2009/11/20 <chan at mcs.anl.gov>
>>
>> ----- "junli gu" <gujunli at gmail.com> wrote:
>>
>> > Hi everyone:
>> >
>> >  I want to run mpi program like a normal binary without
>> > mpirun/mpiexec
>> > command, like this: ./mpi_hello . Is this possible?
>>
>> Yes. but without mpiexec, you can only run 1 process.
>>
>> > This is possible only that I can compile mpi program and put all the
>> > runtime
>> > information into a stand alone binary. I don't know if it is
>> > possible.
>>
>> Hmm... Since you are using a cross-compiler, alpha-gcc, not sure how
>> you built it...  Trying adding -static during linking to see if it
>> links OK.
>>
>> A.Chan
>>
>> >  Thank you very much!
>> >
>> > --
>> > ************************************************
>> > Junli Gu--谷俊丽
>> > Coordinate Science Lab
>> > University of Illinois at Urbana-Champaign
>> > ************************************************
>> >
>> > _______________________________________________
>> > mpich-discuss mailing list
>> > mpich-discuss at mcs.anl.gov
>> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> _______________________________________________
>> mpich-discuss mailing list
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
>
> --
> ************************************************
> Junli Gu--谷俊丽
> Coordinate Science Lab
> University of Illinois at Urbana-Champaign
> ************************************************
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>



-- 
Mário Costa

Laboratório Nacional de Engenharia Civil
LNEC.CTI.NTIEC
Avenida do Brasil 101
1700-066 Lisboa, Portugal
Tel : ++351 21 844 3911


More information about the mpich-discuss mailing list