Hi,<div><br></div><div>Thank you so much for your help! This machinefile solved my problem.</div><div><br></div><div><br></div><div>Best regards, </div><div>Natasa</div><div><br><br><div class="gmail_quote">On 30 March 2012 19:07, Jayesh Krishna <span dir="ltr"><<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
Use a machinefile to specify the machines that you need to run your job on.<br>
Copy the executable to the same location on both machines (Not necessary, but makes things easier) say "c:\temp". Create a text file "mf.txt" with the IP addresses of the two machines specified in different lines. Run your job as,<br>
<br>
mpiexec -n 10 -machinefile mf.txt -path "c:\temp" HelloWorld.exe<br>
<br>
For more information refer to the Windows developer's guide at <a href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs" target="_blank">http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs</a><br>
<div class="im HOEnZb"><br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Mis Nat" <<a href="mailto:kocka87@gmail.com">kocka87@gmail.com</a>><br>
</div><div class="HOEnZb"><div class="h5">To: "Jayesh Krishna" <<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>><br>
Cc: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Friday, March 30, 2012 11:58:27 AM<br>
Subject: Re: [mpich-discuss] MPICH2 not installed or unable to query the host<br>
<br>
I have a simple HelloWorld program which I've tried to run for the begining. I run cmd.exe as Administrator and run my program with "mpiexec -n 10 HelloWorld.exe". The problem I have is that on A-Computer all processes are on A-Computer and if I try to run it on B-Computer all processes are on B-Computer. My final goal is to write QuickSort algorithm. But first I have to be sure my program will run on both computers, because I'm going to analyze the time. I assumed that I need A-Computer highlighted green and that will solve my problem..<br>
<br>
<br>
<br>
<br>
<br>
Source code:<br>
<br>
<br>
<br>
<br>
#include <stdio.h><br>
#include <mpi.h><br>
int main(int argc, char **argv) {<br>
int rank;<br>
char host[150];<br>
int namelen;<br>
MPI_Init(&argc, &argv);<br>
MPI_Comm_rank(MPI_COMM_WORLD, &rank);<br>
MPI_Get_processor_name(host,&namelen);<br>
printf("Hello world (Rank: %d / Host: %s)\n", rank, host);<br>
fflush(stdout);<br>
MPI_Finalize();<br>
return 0;<br>
}<br>
<br>
On 30 March 2012 18:11, Jayesh Krishna < <a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> > wrote:<br>
<br>
<br>
Hi,<br>
This is a known bug. Please ignore it for now.<br>
Can you run your jobs with mpiexec from command line?<br>
<br>
Regards,<br>
Jayesh<br>
<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Mis Nat" < <a href="mailto:kocka87@gmail.com">kocka87@gmail.com</a> ><br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Friday, March 30, 2012 5:26:29 AM<br>
Subject: [mpich-discuss] MPICH2 not installed or unable to query the host<br>
<br>
<br>
Hello!<br>
<br>
<br>
I have MPICH2 1.4.1p1 installed on two computers, both with Win 7 x86.<br>
On A-Computer something's wrong, I got error: "B: MPICH2 not installed or unable to query the host" , on B-Computers in "wmpiconfig.exe" B-Computer highlights green.<br>
<br>
<br>
Please, if anyone know what's wrong let me know. Also if you need more information about settings on both Computers.<br>
<br>
<br>
Many thanks!<br>
_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
</div></div></blockquote></div><br></div>