[mpich-discuss] Res: Re: Install and config

Jayesh Krishna jayesh at mcs.anl.gov
Mon Jan 4 13:32:06 CST 2010


Hi,
 Make sure that the two machines can communicate with each other over the network (The machines should be able to ping each other). Once the machines can communicate over the network, install MPICH2 (available at http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads) on both the machines and you should be able to run your MPI jobs.
 The user documentation on how to use MPICH2 is available at http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs .
 Let us know if you need further help.

Regards,
Jayesh

----- Original Message -----
From: "Rodinei Nunes" <rodinei.nunes at yahoo.com.br>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Monday, January 4, 2010 5:35:31 AM GMT -06:00 US/Canada Central
Subject: Res: Re: [mpich-discuss] Install and config


	


Hi I need instal in Windows XP service pack 3 





-------Mensagem original------- 


De: Jayesh Krishna 
Data: 4/1/2010 21:33:55 
Para: mpich-discuss at mcs.anl.gov 
Cc: rodinei.nunes at yahoo.com.br 
Assunto: Re: [mpich-discuss] Install and config 

Hi, 
Are you trying to install MPICH2 on unix or windows ? 

-Jayesh 
----- Original Message ----- 
From: "Rodinei Nunes" < rodinei.nunes at yahoo.com.br > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, January 4, 2010 4:28:39 AM GMT -06:00 US/Canada Central 
Subject: [mpich-discuss] Install and config 






hello, I have two computers with a 975 Placida Mar MSi power edition with pentium D 3.4GHZ with 100,100,100,100 and IP mask 255.0.0.0 name of the computer on the network is MSI-975 and the other computer is an ASUS P5E3 Premium pentium D 2.8GHZ using the IP 255.0.0.0 and mask 100,100,100,101 your name on the network is ASUS. Please can someone send me the setting to use these two computers together, which the configuration on each computer? Well I do not know anything about the MPICH2. Grateful 





-------Mensagem original------- 


De: mpich-discuss-request at mcs.anl.gov 
Data: 01/04/10 21:06:54 
Para: mpich-discuss at mcs.anl.gov 
Assunto: mpich-discuss Digest, Vol 16, Issue 1 

Send mpich-discuss mailing list submissions to 
mpich-discuss at mcs.anl.gov 

To subscribe or unsubscribe via the World Wide Web, visit 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
or, via email, send a message with subject or body 'help' to 
mpich-discuss-request at mcs.anl.gov 

You can reach the person managing the list at 
mpich-discuss-owner at mcs.anl.gov 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of mpich-discuss digest..." 


Today's Topics: 

1. Re: smpd on windows 7 (Jayesh Krishna) 
2. Re: MPI_Waitsome and MPI_Getcount incorrect ( jayesh at mcs.anl.gov ) 
3. Re: mpich2-1.2.1 on Cygwin/Vista (Jayesh Krishna) 
4. Re: smpd on windows 7 (Sherry Frese) 
5. Re: mpich2-1.2.1 on Cygwin/Vista (Sherry Frese) 
6. Re: smpd on windows 7 ( jayesh at mcs.anl.gov ) 


---------------------------------------------------------------------- 

Message: 1 
Date: Mon, 4 Jan 2010 09:09:45 -0600 (CST) 
From: Jayesh Krishna < jayesh at mcs.anl.gov > 
Subject: Re: [mpich-discuss] smpd on windows 7 
To: mpich-discuss at mcs.anl.gov 
Cc: Sherry.Frese at Numerex-LLC.com 
Message-ID: < 12042708.581131262617785646.JavaMail.root at zimbra > 
Content-Type: text/plain; charset=utf-8 

Hi, 
Open a command prompt with administrator privileges (Right-click on command prompt icon and select "Run as administrator") and use the windows installer from command line to install MPICH2. 
To uninstall MPICH2 (It is recommended that you uninstall MPICH2 before installing a new version) run the following at the command prompt (with admin privileges), 

msiexec /x mpich2-1.2.1-win-ia32.msi 

To install MPICH2 run the following at the command prompt (with admin privileges), 

msiexec /i mpich2-1.2.1-win-ia32.msi 

Let us know if you still have problems. 

(PS: Running msiexec at the command prompt should bring up the GUI for installing MPICH2.) 

Regards, 
Jayesh 

----- Original Message ----- 
From: "Sherry Frese" < Sherry.Frese at Numerex-LLC.com > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central 
Subject: [mpich-discuss] smpd on windows 7 

I have been using MPICH2 on Windows XP (as well as under linux) for 
over 2 years. 

I am now moving to Windows 7 on a new PC. I have downloaded and 
installed the most recent MPICH2 for Windows and the install appears 
to have been OK. However, the smpd refuses to install as a 
service. smpd never shows up in the Task Manager's list of 
services. I have run 'sc //hostname query smpd', and it says the 
'specified service does not exist as an installed service'. 

I have redone the full install several times, under 2 different admin 
accounts (one of them named 'administator'). I have tried the 
explicit smpd -install as well (varying accounts, directory 
locations. etc.), and routinely receive the message: 

OpenSCManager Failed: 
Access is denied. (error 5) 
Unable to remove the previous installation, install failed. 

If I try smpd -uninstall, I get the same OpenSCManager Failed... message. 

Any advice would be greatly appreciated 


---------------------------- 
Sherry Frese 

_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 


------------------------------ 

Message: 2 
Date: Mon, 4 Jan 2010 09:43:06 -0600 (CST) 
From: jayesh at mcs.anl.gov 
Subject: Re: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect 
To: mpich-discuss at mcs.anl.gov 
Message-ID: < 19470479.583711262619786913.JavaMail.root at zimbra > 
Content-Type: text/plain; charset=utf-8 

Hi, 
There is a bug in your code which results in accessing invalid indices of the status array. 
Please modify the for loop in your code as below and let us know if it works for you. 

#################################################################### 

for (;;) { 
/* wait for one, or multiple requests to finish */ 
int outcount = MPI::Request::Waitsome(2, req, array_of_indeces, array_of_statuses); 
if (outcount == MPI_UNDEFINED) break; /* no active handles */ 

debug("received count: %d", outcount); 
for (int index=0; index<outcount; index++) { 
/* size_t index = array_of_indeces[outcount]; */ 
int req_index = array_of_indeces[index]; 

debug("Request %d completed", req_index); 
int recv_count = array_of_statuses[index].Get_count(array_of_types[req_index]); 
debug("MPI_GET_COUNT %d", recv_count); 
} 
} 

#################################################################### 

Regards, 
Jayesh 

----- Original Message ----- 
From: "Tam?s Farag?" < fafarago at gmail.com > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, December 28, 2009 3:55:51 AM GMT -06:00 US/Canada Central 
Subject: Re: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect 

Sorry for the late reply but I was out of the country for a week. I am 
using MPICH2 1.2.1 on a WinXP SP3 machine running an Intel Core i5 
CPU. This is the output I get when running the application (mpiexec -n 
2 -l test3.exe) 

[1]client before: a 0, b 0 
[0]host: a 1, b 2 
[0]done, waiting.... 
[1]received count: 1 
[1]MPI_Waitsome index 0 
[1]MPI_GET_COUNT 1 
[1]received count: 1 
[1]MPI_Waitsome index 1 
[1]MPI_GET_COUNT -32766 
[1]client after: a 1, b 2 
[1]done, waiting.... 
[0]finalize 
[1]finalize 

On 22/12/2009, Rajeev Thakur < thakur at mcs.anl.gov > wrote: 
> I am not able to reproduce this problem when running MPICH2 1.2.1 with 2 
> processes on a single machine. 
> 
> Rajeev 
> 
>> -----Original Message----- 
>> From: mpich-discuss-bounces at mcs.anl.gov 
>> [ mailto:mpich-discuss-bounces at mcs.anl.gov ] On Behalf Of Tam?s Farag? 
>> Sent: Wednesday, December 16, 2009 7:48 AM 
>> To: mpich-discuss at mcs.anl.gov 
>> Subject: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect 
>> 
>> My actual problem, why I initiated the previous post at 
>> http://lists.mcs.anl.gov/pipermail/mpich-discuss/2009-December 
>> /006187.html 
>> ([mpich-discuss] MPI_GET_COUNT behaviour unclear). 
>> 
>> See the very simple source code below. I initialise two 
>> persistent requests, then run a Waitsome on both of them and 
>> getting the top-level datatypes received. With Waitsome the 
>> second one returns MPI_UNDEFINED, no idea why. Waitall 
>> correctly returns 1 in both cases. 
>> What is going on, is it my fault and can it be solved? 
>> 
>> I have also uploaded the source code to 
>> http://www.liacs.nl/~tfarago/test.cpp 
>> NOTE: right now the tags are all the same, but even if 
>> different tags are given to the sending and receiving side 
>> (eg 0 and 1), the outcoume is the same. From the output it 
>> can be seen that even if MPI_GET_COUNT returns some kind of 
>> an error the program's behaviour is still correct. 
>> NOTE: also, strangely I cannot get Waitsome to return both 
>> completed requests, not even if I let the client sleep/idle 
>> for several seconds. 
>> 
>> ---CODE-- 
>> #include <stdarg.h> 
>> #include <stdio.h> 
>> #include <mpi.h> 
>> 
>> #pragma comment(lib, "cxx.lib") 
>> #pragma comment(lib, "mpi.lib") 
>> 
>> void __cdecl debug(const char* msg, ...) { 
>> va_list va; 
>> va_start(va, msg); 
>> vfprintf(stderr, msg, va); 
>> fputs("\n", stderr); 
>> fflush(stderr); 
>> } 
>> 
>> int main() { 
>> MPI::Init(); 
>> int my_node = MPI::COMM_WORLD.Get_rank(); 
>> 
>> int a, b; 
>> MPI::Prequest req[2]; 
>> a = 0; b = 0; 
>> if (my_node == 0) { 
>> a = 1; b = 2; 
>> req[0] = MPI::COMM_WORLD.Send_init(&a, 1, 
>> MPI::INT, 1, 0); 
>> req[1] = MPI::COMM_WORLD.Send_init(&b, 1, 
>> MPI::INT, 1, 0); 
>> } else { 
>> size_t size = MPI::INT.Pack_size(1, MPI::COMM_WORLD); 
>> 
>> req[0] = MPI::COMM_WORLD.Recv_init(&a, size, 
>> MPI::INT, 0, MPI::ANY_TAG); 
>> req[1] = MPI::COMM_WORLD.Recv_init(&b, size, 
>> MPI::INT, 0, MPI::ANY_TAG); 
>> } 
>> 
>> MPI::Prequest::Startall(2, req); 
>> 
>> if (my_node == 0) { 
>> debug("host: a %d, b %d", a, b); 
>> } else { 
>> debug("client before: a %d, b %d", a, b); 
>> int array_of_indeces[2]; 
>> MPI::Status array_of_statuses[2]; 
>> MPI::Datatype array_of_types[2]; 
>> array_of_types[0] = MPI::INT; 
>> array_of_types[1] = MPI::INT; 
>> #if 1 
>> for (;;) { 
>> /* wait for one, or multiple requests 
>> to finish */ 
>> int outcount = 
>> MPI::Request::Waitsome(2, req, array_of_indeces, array_of_statuses); 
>> if (outcount == MPI_UNDEFINED) break; 
>> /* no active handles */ 
>> 
>> debug("received count: %d", outcount); 
>> for (outcount--; outcount >= 0; --outcount) { 
>> size_t index = 
>> array_of_indeces[outcount]; 
>> 
>> debug("MPI_Waitsome index %d", index); 
>> int recv_count = 
>> array_of_statuses[index].Get_count(array_of_types[index]); 
>> debug("MPI_GET_COUNT %d", recv_count); 
>> } 
>> } 
>> #else 
>> MPI::Prequest::Waitall(2, req, array_of_statuses); 
>> 
>> for (int outcount = 2; outcount > 0; --outcount) { 
>> int recv_count = 
>> array_of_statuses[outcount-1].Get_count(array_of_types[outcount-1]); 
>> debug("MPI_GET_COUNT %d", recv_count); 
>> } 
>> #endif 
>> debug("client after: a %d, b %d", a, b); 
>> } 
>> 
>> debug("done, waiting...."); 
>> MPI::COMM_WORLD.Barrier(); 
>> debug("finalize"); 
>> MPI::Finalize(); 
>> return 0; 
>> } 
>> ---CODE--- 
> 
> _______________________________________________ 
> mpich-discuss mailing list 
> mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
> 
_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 


------------------------------ 

Message: 3 
Date: Mon, 4 Jan 2010 10:12:36 -0600 (CST) 
From: Jayesh Krishna < jayesh at mcs.anl.gov > 
Subject: Re: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista 
To: mpich-discuss at mcs.anl.gov 
Cc: gustav at indiana.edu 
Message-ID: < 18116662.585721262621556712.JavaMail.root at zimbra > 
Content-Type: text/plain; charset=utf-8 

Hi, 
Let me take a look at this and get back to you. 
Meanwhile, if you are planning to work with C/C++ MPI programs (not fortran MPI programs) you can install MPICH2 on windows and use the gcc libs (you can even compile/link directly with the windows mpi libraries with gcc) provided with the installation. 

(PS: To install MPICH2 on Vista/windows_7 type "msiexec /i mpich2-1.2.1-win-ia32.msi" from an administrator command prompt. Right-click on the command prompt icon and select "Run as administrator" to run a command prompt with admin privileges. Similarly to uninstall MPICH2 type "msiexec /x mpich2-1.2.1-win-ia32.msi".) 
Regards, 
Jayesh 
----- Original Message ----- 
From: "gustav" < gustav at indiana.edu > 
To: mpich-discuss at mcs.anl.gov 
Sent: Thursday, December 24, 2009 7:54:06 AM GMT -06:00 US/Canada Central 
Subject: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista 


Well, it works. Finally. But with one little snag--see below. 

System: Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6002 Service Pack 2 
uname: CYGWIN_NT-6.0-WOW64 Crawley 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin 
CPU: AMD Phenom X4 9550 
gcc: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) 
MPI: mpich2-1.2.1 
config: ./configure --prefix=/home/gustav/mpich2-1.2.1 --disable-sharedlibs --enable-timer-type=gettimeofday --with-device=ch3:ssm --with-thread-package=pthreads 

An important step that must be emphasized for Cygwin users is that to 
enable XSI IPCs (this activates shared memory too) Cygserver must be 
run on the machine. See /usr/share/doc/Cygwin/cygserver.README for 
more info. Also, the CYGWIN environmental variable must be set to 
"server". This is described in the doc, as well. 

With all this done and MPI compiled and installed, it works for a user 
with admin privileges. Here's a brief demo: 

root at Crawley 515 # echo $CYGWIN 
server 
root at Crawley 516 # which mpdboot 
/home/gustav/mpich2-1.2.1/bin/mpdboot 
root at Crawley 517 # mpdboot --ncpus=4 --verbose 
running mpdallexit on Crawley 
LAUNCHED mpd on Crawley via 
RUNNING: mpd on Crawley 
root at Crawley 518 # mpirun -np 4 hostname 
Crawley 
Crawley 
Crawley 
Crawley 
root at Crawley 519 # mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe 
Crawley: hello world from process 0 of 4 
Crawley: hello world from process 1 of 4 
Crawley: hello world from process 2 of 4 
Crawley: hello world from process 3 of 4 
root at Crawley 520 # mpdallexit 
root at Crawley 521 # 

Alas, there is a little snag. User "root" has admin privileges. User 
"gustav" does not. And here is what happens when this hapless 
individual attempts the same: 

gustav at Crawley 556 $ echo $CYGWIN 
server 
gustav at Crawley 557 $ mpdboot --ncpus=4 --verbose 
running mpdallexit on Crawley 
LAUNCHED mpd on Crawley via 
RUNNING: mpd on Crawley 
gustav at Crawley 558 $ mpirun -np 4 hostname 
Crawley 
Crawley 
Crawley 
Crawley 
gustav at Crawley 559 $ mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe 
Assertion failed in file mpidi_pg.c at line 277: ((pg)->ref_count) == 0 
internal ABORT - process 0 
[cli_0]: aborting job: 
internal ABORT - process 0 
rank 0 in job 2 Crawley_50796 caused collective abort of all ranks 
exit status of rank 0: killed by signal 9 
gustav at Crawley 560 $ mpdallexit 
gustav at Crawley 561 $ 

On the other hand, this little non-MPI program that tests shared memory 
stuff still works for the non-admin user: 

gustav at Crawley 563 $ cat shm.c 
#include <stdio.h> 
#include <sys/types.h> 
#include <sys/ipc.h> 
#include <sys/shm.h> 

int main(int argc, char *argv[]) 
{ 
int shmid; 

if((shmid = shmget(IPC_PRIVATE, 1, IPC_CREAT)) == -1){ 
perror("shmget"); 
} 
shmctl(shmid, IPC_RMID, NULL); 
} 

gustav at Crawley 564 $ cc -o shm shm.c 
gustav at Crawley 565 $ ./shm 
gustav at Crawley 566 $ echo $? 
0 
gustav at Crawley 567 $ 

Question: Why can't the non-admin user execute the MPI program? 

Greetings to all, 

-- 
Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information 
Technology, Indiana University, 601 E. Kirkwood Ave., Room 116, 
Bloomington, IN 47405-1223, USA, http://perth.ovpit.indiana.edu/gustav , 
Ph: 812-856-5597 (o), 812-345-3284 (m), Fax: 812-855-3310/812-856-3147, 

_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 


------------------------------ 

Message: 4 
Date: Mon, 04 Jan 2010 09:16:45 -0700 
From: Sherry Frese < Sherry.Frese at Numerex-LLC.com > 
Subject: Re: [mpich-discuss] smpd on windows 7 
To: mpich-discuss at mcs.anl.gov 
Message-ID: < 6.2.5.6.2.20100104083538.02d6ebe0 at Numerex-LLC.com > 
Content-Type: text/plain; charset="us-ascii"; format=flowed 

Jayesh, 

Thanks for the response, but it still does not work. 

Previously I had just been executing the .msi file from my admin 
account. This time I uninstalled (which said it was successful) and 
then installed the MPICH2, using msiexec from the command line as you 
suggested. The GUI came up, and all seemed fine (I kept the default 
smpd password and installed for all users). And indeed, as before I 
have all the MPICH2 directories and files in my Program File (x86) 
directory. However the smpd service is not being installed. 

I've checked on the Task manager - it's not there. 
I tried sc \\hostname query smpd and it now says 

[SC] EnumQueryServicesStatus: OpenService FAILED 1060: 
The specified service does not exist as an installed service. 

My parallel executable is called m2. When I try 

mpiexec -n 1 -localonly m2 

I get a request for the smpd passphrase , which I supply. 

mpiexec (I assume) then comes back with 

Unknown option : -d 
missing numproc flag: -n , -np, -hosts, or -localonly 
Unable to parse mipexec command arguments 
ReadFile() Failed, error 109 
unable to start the local smpd manager 

I get the same response if I try mpiexec -n 2 
-localonly m2 or mpiexec -localonly 1 m2 . 


I'm pretty sure that the problem is that the smpd service is not 
being installed. 

One additional piece of info. This is a 64 bit machine, and the m2 
I am running is a 32 bit version. But it runs fine in serial on this machine. 

Thanks for you help, 
Sherry 



At 08:09 AM 1/4/2010, you wrote: 
>Hi, 
> Open a command prompt with administrator privileges (Right-click 
> on command prompt icon and select "Run as administrator") and use 
> the windows installer from command line to install MPICH2. 
> To uninstall MPICH2 (It is recommended that you uninstall MPICH2 
> before installing a new version) run the following at the command 
> prompt (with admin privileges), 
> 
> msiexec /x mpich2-1.2.1-win-ia32.msi 
> 
> To install MPICH2 run the following at the command prompt (with 
> admin privileges), 
> 
> msiexec /i mpich2-1.2.1-win-ia32.msi 
> 
> Let us know if you still have problems. 
> 
>(PS: Running msiexec at the command prompt should bring up the GUI 
>for installing MPICH2.) 
> 
>Regards, 
>Jayesh 
> 
>----- Original Message ----- 
>From: "Sherry Frese" < Sherry.Frese at Numerex-LLC.com > 
>To: mpich-discuss at mcs.anl.gov 
>Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central 
>Subject: [mpich-discuss] smpd on windows 7 
> 
>I have been using MPICH2 on Windows XP (as well as under linux) for 
>over 2 years. 
> 
>I am now moving to Windows 7 on a new PC. I have downloaded and 
>installed the most recent MPICH2 for Windows and the install appears 
>to have been OK. However, the smpd refuses to install as a 
>service. smpd never shows up in the Task Manager's list of 
>services. I have run 'sc //hostname query smpd', and it says the 
>'specified service does not exist as an installed service'. 
> 
>I have redone the full install several times, under 2 different admin 
>accounts (one of them named 'administator'). I have tried the 
>explicit smpd -install as well (varying accounts, directory 
>locations. etc.), and routinely receive the message: 
> 
>OpenSCManager Failed: 
>Access is denied. (error 5) 
>Unable to remove the previous installation, install failed. 
> 
>If I try smpd -uninstall, I get the same OpenSCManager Failed... message. 
> 
>Any advice would be greatly appreciated 
> 
> 
>---------------------------- 
>Sherry Frese 
> 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 

---------------------------- 
Sherry Frese 
NumerEx 
505-828-9050 
NOTE NEW EMAIL ADDRESS - Sherry.Frese at NumerEx-LLC.com 



------------------------------ 

Message: 5 
Date: Mon, 04 Jan 2010 09:31:41 -0700 
From: Sherry Frese < Sherry.Frese at Numerex-LLC.com > 
Subject: Re: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista 
To: mpich-discuss at mcs.anl.gov 
Message-ID: < 6.2.5.6.2.20100104092725.02c87018 at Numerex-LLC.com > 
Content-Type: text/plain; charset="us-ascii"; format=flowed 


Thanks, 

Unfortunately my applications are both C and Fortran. But so far 
I've been able to compile and link (using the MPICH2 libraries) 
on my windows 7 machine. I just can't run under mpiexec. (I've 
tried executables built on the windows 7 machine & older 
executables built under XP with the same results). 

I'll wait to hear from you. 

--Sherry 

At 09:12 AM 1/4/2010, you wrote: 
>Hi, 
> Let me take a look at this and get back to you. 
> Meanwhile, if you are planning to work with C/C++ MPI programs 
> (not fortran MPI programs) you can install MPICH2 on windows and 
> use the gcc libs (you can even compile/link directly with the 
> windows mpi libraries with gcc) provided with the installation. 
> 
>(PS: To install MPICH2 on Vista/windows_7 type "msiexec /i 
>mpich2-1.2.1-win-ia32.msi" from an administrator command prompt. 
>Right-click on the command prompt icon and select "Run as 
>administrator" to run a command prompt with admin privileges. 
>Similarly to uninstall MPICH2 type "msiexec /x mpich2-1.2.1-win-ia32.msi".) 
>Regards, 
>Jayesh 
>----- Original Message ----- 
>From: "gustav" < gustav at indiana.edu > 
>To: mpich-discuss at mcs.anl.gov 
>Sent: Thursday, December 24, 2009 7:54:06 AM GMT -06:00 US/Canada Central 
>Subject: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista 
> 
> 
>Well, it works. Finally. But with one little snag--see below. 
> 
> System: Windows Longhorn/Vista (not yet supported!) Ver 6.0 
> Build 6002 Service Pack 2 
> uname: CYGWIN_NT-6.0-WOW64 Crawley 1.5.25(0.156/4/2) 
> 2008-06-12 19:34 i686 Cygwin 
> CPU: AMD Phenom X4 9550 
> gcc: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) 
> MPI: mpich2-1.2.1 
> config: ./configure --prefix=/home/gustav/mpich2-1.2.1 
> --disable-sharedlibs --enable-timer-type=gettimeofday 
> --with-device=ch3:ssm --with-thread-package=pthreads 
> 
>An important step that must be emphasized for Cygwin users is that to 
>enable XSI IPCs (this activates shared memory too) Cygserver must be 
>run on the machine. See /usr/share/doc/Cygwin/cygserver.README for 
>more info. Also, the CYGWIN environmental variable must be set to 
>"server". This is described in the doc, as well. 
> 
>With all this done and MPI compiled and installed, it works for a user 
>with admin privileges. Here's a brief demo: 
> 
> root at Crawley 515 # echo $CYGWIN 
> server 
> root at Crawley 516 # which mpdboot 
> /home/gustav/mpich2-1.2.1/bin/mpdboot 
> root at Crawley 517 # mpdboot --ncpus=4 --verbose 
> running mpdallexit on Crawley 
> LAUNCHED mpd on Crawley via 
> RUNNING: mpd on Crawley 
> root at Crawley 518 # mpirun -np 4 hostname 
> Crawley 
> Crawley 
> Crawley 
> Crawley 
> root at Crawley 519 # mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe 
> Crawley: hello world from process 0 of 4 
> Crawley: hello world from process 1 of 4 
> Crawley: hello world from process 2 of 4 
> Crawley: hello world from process 3 of 4 
> root at Crawley 520 # mpdallexit 
> root at Crawley 521 # 
> 
>Alas, there is a little snag. User "root" has admin privileges. User 
>"gustav" does not. And here is what happens when this hapless 
>individual attempts the same: 
> 
> gustav at Crawley 556 $ echo $CYGWIN 
> server 
> gustav at Crawley 557 $ mpdboot --ncpus=4 --verbose 
> running mpdallexit on Crawley 
> LAUNCHED mpd on Crawley via 
> RUNNING: mpd on Crawley 
> gustav at Crawley 558 $ mpirun -np 4 hostname 
> Crawley 
> Crawley 
> Crawley 
> Crawley 
> gustav at Crawley 559 $ mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe 
> Assertion failed in file mpidi_pg.c at line 277: ((pg)->ref_count) == 0 
> internal ABORT - process 0 
> [cli_0]: aborting job: 
> internal ABORT - process 0 
> rank 0 in job 2 Crawley_50796 caused collective abort of all ranks 
> exit status of rank 0: killed by signal 9 
> gustav at Crawley 560 $ mpdallexit 
> gustav at Crawley 561 $ 
> 
>On the other hand, this little non-MPI program that tests shared memory 
>stuff still works for the non-admin user: 
> 
> gustav at Crawley 563 $ cat shm.c 
> #include <stdio.h> 
> #include <sys/types.h> 
> #include <sys/ipc.h> 
> #include <sys/shm.h> 
> 
> int main(int argc, char *argv[]) 
> { 
> int shmid; 
> 
> if((shmid = shmget(IPC_PRIVATE, 1, IPC_CREAT)) == -1){ 
> perror("shmget"); 
> } 
> shmctl(shmid, IPC_RMID, NULL); 
> } 
> 
> gustav at Crawley 564 $ cc -o shm shm.c 
> gustav at Crawley 565 $ ./shm 
> gustav at Crawley 566 $ echo $? 
> 0 
> gustav at Crawley 567 $ 
> 
>Question: Why can't the non-admin user execute the MPI program? 
> 
>Greetings to all, 
> 
>-- 
>Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information 
>Technology, Indiana University, 601 E. Kirkwood Ave., Room 116, 
>Bloomington, IN 47405-1223, USA, http://perth.ovpit.indiana.edu/gustav , 
>Ph: 812-856-5597 (o), 812-345-3284 (m), Fax: 812-855-3310/812-856-3147, 
> 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 

---------------------------- 
Sherry Frese 
NumerEx 
505-828-9050 
NOTE NEW EMAIL ADDRESS - Sherry.Frese at NumerEx-LLC.com 



------------------------------ 

Message: 6 
Date: Mon, 4 Jan 2010 10:36:47 -0600 (CST) 
From: jayesh at mcs.anl.gov 
Subject: Re: [mpich-discuss] smpd on windows 7 
To: mpich-discuss at mcs.anl.gov 
Cc: Sherry.Frese at Numerex-LLC.com 
Message-ID: < 1247911.587581262623007296.JavaMail.root at zimbra > 
Content-Type: text/plain; charset=utf-8 

Hi, 
Can you see MPICH2 process manager in the list of services (Look at Control Panel\System and Security\Administrative Tools\Services)? Also check the status of the service (Is it started ?)? 
You don't have to supply the "-localonly" flag to run MPI processes on the local machine. MPICH2 by default launches the processes on the local machine ("mpiexec -n 1 m2" should launch m2 on the local machine). 
Can you run a simple non-MPI program (mpiexec -n 2 hostname)? 

Regards, 
Jayesh 
----- Original Message ----- 
From: "Sherry Frese" < Sherry.Frese at Numerex-LLC.com > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, January 4, 2010 10:16:45 AM GMT -06:00 US/Canada Central 
Subject: Re: [mpich-discuss] smpd on windows 7 

Jayesh, 

Thanks for the response, but it still does not work. 

Previously I had just been executing the .msi file from my admin 
account. This time I uninstalled (which said it was successful) and 
then installed the MPICH2, using msiexec from the command line as you 
suggested. The GUI came up, and all seemed fine (I kept the default 
smpd password and installed for all users). And indeed, as before I 
have all the MPICH2 directories and files in my Program File (x86) 
directory. However the smpd service is not being installed. 

I've checked on the Task manager - it's not there. 
I tried sc \\hostname query smpd and it now says 

[SC] EnumQueryServicesStatus: OpenService FAILED 1060: 
The specified service does not exist as an installed service. 

My parallel executable is called m2. When I try 

mpiexec -n 1 -localonly m2 

I get a request for the smpd passphrase , which I supply. 

mpiexec (I assume) then comes back with 

Unknown option : -d 
missing numproc flag: -n , -np, -hosts, or -localonly 
Unable to parse mipexec command arguments 
ReadFile() Failed, error 109 
unable to start the local smpd manager 

I get the same response if I try mpiexec -n 2 
-localonly m2 or mpiexec -localonly 1 m2 . 


I'm pretty sure that the problem is that the smpd service is not 
being installed. 

One additional piece of info. This is a 64 bit machine, and the m2 
I am running is a 32 bit version. But it runs fine in serial on this machine. 

Thanks for you help, 
Sherry 



At 08:09 AM 1/4/2010, you wrote: 
>Hi, 
> Open a command prompt with administrator privileges (Right-click 
> on command prompt icon and select "Run as administrator") and use 
> the windows installer from command line to install MPICH2. 
> To uninstall MPICH2 (It is recommended that you uninstall MPICH2 
> before installing a new version) run the following at the command 
> prompt (with admin privileges), 
> 
> msiexec /x mpich2-1.2.1-win-ia32.msi 
> 
> To install MPICH2 run the following at the command prompt (with 
> admin privileges), 
> 
> msiexec /i mpich2-1.2.1-win-ia32.msi 
> 
> Let us know if you still have problems. 
> 
>(PS: Running msiexec at the command prompt should bring up the GUI 
>for installing MPICH2.) 
> 
>Regards, 
>Jayesh 
> 
>----- Original Message ----- 
>From: "Sherry Frese" < Sherry.Frese at Numerex-LLC.com > 
>To: mpich-discuss at mcs.anl.gov 
>Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central 
>Subject: [mpich-discuss] smpd on windows 7 
> 
>I have been using MPICH2 on Windows XP (as well as under linux) for 
>over 2 years. 
> 
>I am now moving to Windows 7 on a new PC. I have downloaded and 
>installed the most recent MPICH2 for Windows and the install appears 
>to have been OK. However, the smpd refuses to install as a 
>service. smpd never shows up in the Task Manager's list of 
>services. I have run 'sc //hostname query smpd', and it says the 
>'specified service does not exist as an installed service'. 
> 
>I have redone the full install several times, under 2 different admin 
>accounts (one of them named 'administator'). I have tried the 
>explicit smpd -install as well (varying accounts, directory 
>locations. etc.), and routinely receive the message: 
> 
>OpenSCManager Failed: 
>Access is denied. (error 5) 
>Unable to remove the previous installation, install failed. 
> 
>If I try smpd -uninstall, I get the same OpenSCManager Failed... message. 
> 
>Any advice would be greatly appreciated 
> 
> 
>---------------------------- 
>Sherry Frese 
> 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
>_______________________________________________ 
>mpich-discuss mailing list 
& gt;mpich-discuss at mcs.anl.gov 
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 

---------------------------- 
Sherry Frese 
NumerEx 
505-828-9050 
NOTE NEW EMAIL ADDRESS - Sherry.Frese at NumerEx-LLC.com 

_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 


------------------------------ 

_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 


End of mpich-discuss Digest, Vol 16, Issue 1 
******************************************** 


_______________________________________________ 
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