[mpich-discuss] Can I run MPI program without mpirun/mpiexec?
Dave Goodell
goodell at mcs.anl.gov
Tue Feb 23 17:17:22 CST 2010
Basically, this won't work.
The process manager plays a necessary role in starting the MPI
processes and bootstrapping their communication. It is extremely
unlikely that you will be able to make something sensible work by
running the processes yourself and just twiddling a few environment
variables (for more than a single process, anyway).
-Dave
On Feb 23, 2010, at 5:06 PM, John Xu wrote:
> Hi,
>
> I ended up trying to setup the environment manually myself and got the
> program to run
> without mpiexec.
> However, the process I kicked off does not seems to reflect the number
> of processes
> I requested.
>
> For example, I set PMI_RANK = 0 and PMI_SIZE=2,
> but when I launched cpi, I got the following:
>
> Process 0 of 1 is on (none)
> pi is approximately 3.1415926544231332, Error is 0.0000000008333401
> wall clock time = 0.000976
>
> The total number of processes is 1 instead of 2.
>
> Any idea of what environment variable I need to set to get the desired
> behaviour?
>
> Thanks,
> john
>
> On Tue, Feb 23, 2010 at 4:25 PM, John Xu <johnzxu at gmail.com> wrote:
>> Hi,
>>
>> I am trying to start up mpi process in a processor simulator
>> environment. So I have the same problem
>> as formerly posted in
>> https://lists.mcs.anl.gov/mailman/htdig/mpich-discuss/2009-November/006008.html
>>
>> Jayesh,
>>
>> You indicated that there is a way similar to the windows debugging by
>> starting processes at manually.
>> But it requires two command prompts.
>>
>> Does it work for a linux environment running SMP with say 2 cores?
>>
>> Since I only have one dummy term emulated from the simulator, I can
>> not get two command prompts.
>> Can I setup the environment as in your document and start two
>> processes in the background?
>>
>> thanks,
>> john
>>
>>
>> -----------------------------------------------------------
>> Hi,
>> Yes, you can run an MPI program without mpiexec/mpirun. Let us know
>> if you have any problems.
>>
>> Regards,
>> Jayesh
>> ----- Original Message -----
>> From: "junli gu" <gujunli at gmail.com>
>> To: mpich-discuss at mcs.anl.gov
>> Sent: Friday, November 20, 2009 2:58:30 PM GMT -06:00 US/Canada
>> Central
>> Subject: [mpich-discuss] Can I run MPI program without mpirun/
>> mpiexec?
>>
>>
>> Hi everyone:
>>
>> I want to run mpi program like a normal binary without mpirun/mpiexec
>> command, like this: ./mpi_hello . Is this possible?
>>
>> 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.
>>
>> 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
More information about the mpich-discuss
mailing list