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.. <div>
<div><br></div><div><br></div><div>Source code:</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
#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>}</blockquote></div></div><br><div class="gmail_quote">
On 30 March 2012 18:11, 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>
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>
<div><div></div><div class="h5"><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>
</div></div>_______________________________________________<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>
</blockquote></div><br>