[mpich-discuss] MPICH2 not installed or unable to query the host

Mis Nat kocka87 at gmail.com
Tue Apr 3 06:34:59 CDT 2012


Hi,

Thank you so much for your help! This machinefile solved my problem.


Best regards,
Natasa


On 30 March 2012 19:07, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:

> Hi,
>  Use a machinefile to specify the machines that you need to run your job
> on.
>  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,
>
>     mpiexec -n 10 -machinefile mf.txt -path "c:\temp" HelloWorld.exe
>
>  For more information refer to the Windows developer's guide at
> http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs
>
> Regards,
> Jayesh
>
> ----- Original Message -----
> From: "Mis Nat" <kocka87 at gmail.com>
> To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
> Cc: mpich-discuss at mcs.anl.gov
> Sent: Friday, March 30, 2012 11:58:27 AM
> Subject: Re: [mpich-discuss] MPICH2 not installed or unable to query the
> host
>
> 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..
>
>
>
>
>
> Source code:
>
>
>
>
> #include <stdio.h>
> #include <mpi.h>
> int main(int argc, char **argv) {
> int rank;
> char host[150];
> int namelen;
> MPI_Init(&argc, &argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> MPI_Get_processor_name(host,&namelen);
> printf("Hello world (Rank: %d / Host: %s)\n", rank, host);
> fflush(stdout);
> MPI_Finalize();
> return 0;
> }
>
> On 30 March 2012 18:11, Jayesh Krishna < jayesh at mcs.anl.gov > wrote:
>
>
> Hi,
> This is a known bug. Please ignore it for now.
> Can you run your jobs with mpiexec from command line?
>
> Regards,
> Jayesh
>
>
>
>
> ----- Original Message -----
> From: "Mis Nat" < kocka87 at gmail.com >
> To: mpich-discuss at mcs.anl.gov
> Sent: Friday, March 30, 2012 5:26:29 AM
> Subject: [mpich-discuss] MPICH2 not installed or unable to query the host
>
>
> Hello!
>
>
> I have MPICH2 1.4.1p1 installed on two computers, both with Win 7 x86.
> 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.
>
>
> Please, if anyone know what's wrong let me know. Also if you need more
> information about settings on both Computers.
>
>
> Many thanks!
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120403/11806915/attachment-0001.htm>


More information about the mpich-discuss mailing list