[mpich-discuss] Running mpiexec on WIndows Computers
Sole Eko
sole.eko at gmail.com
Sat Feb 21 10:06:10 CST 2009
Hi,
I can't try this until monday.
I will do it and send resuts on this list.
Regards,
Sole
On Fri, Feb 20, 2009 at 9:39 PM, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:
> Hi,
> Please run the command below and provide us with the output
> (system_info_machines1_2.log),
>
> mpiexec -hosts 2 IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
> systeminfo > system_info_machines1_2.log
>
> Instead of trying out cpi.exe try compiling and running the following
> helloworld program,
>
> ################# hello world #####################
> #include <stdio.h>
> #include "mpi.h"
>
> int main(int argc, char *argv[])
> {
> int rank = -1;
> MPI_Init(&argc, &argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> printf("[%d] Hello world\n", rank);
> MPI_Finalize();
> }
> ################# hello world #####################
>
> Compile the program above, copy it to c:\temp, and run it as follows,
>
> mpiexec -hosts 2 IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
> c:\temp\hello_world.exe
>
> Let us know the results.
>
> Regards,
> Jayesh
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090221/e0c875b6/attachment.htm>
More information about the mpich-discuss
mailing list