[mpich-discuss] It works now!!! AW: AW: installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)

Jayesh Krishna jayesh at mcs.anl.gov
Thu Sep 20 09:27:12 CDT 2012


Hi,
 Good to know MPICH2 worked for you. And thanks for your comments.

Regards,
Jayesh

----- Original Message -----
From: "Michael Rachner" <Michael.Rachner at dlr.de>
To: mpich-discuss at mcs.anl.gov
Sent: Thursday, September 20, 2012 4:35:01 AM
Subject: [mpich-discuss] It works now!!! AW: AW: installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)

Dear Mr. Krishna,

Now it works!   With your help and the help of a colleague  MPI2 is correctly installed and is running on my WIN7 (64-bit) PC.

I describe here the successful installation (may be useful for other simple Users like me) under Win7 (64-bit) in detail:

    1. )  download     mpich2-1.4.1p1-win-x86-64.msi 
    2.)  open a command window  (cmd.exe)  'as administrator'.
          'As administrator' means that (regardless you are logged in as a normal user or as an administrator)
           you open the command window by right-mouse-click on the cmd.exe-icon on the desktop 
            or by right mouse-click on the  C:\Windows\System32\cmd.exe  file in the WINDOWS-Explorer.
             Then choose  'Als Administrator ausfuehren'   (='execute as administrator')  )
          ATTENTION here:   This way to open the command window is necessary even if you are already logged-in as administrator !!
            (Exactly here was my error in the past:  I was logged-in as an administrator, but opened the command-window by a simple double click.
             In that case the installation is actually not made with administrator rights,
             so that the automatic start of the smpd.exe (the MPICH2 process manager) does not happen.)

     3.)   type on the command line:     msiexec /I mpich2-1.4.1p1-win-x86-64.msi  
             and follow the simple installation menu .
 
     4.)  After installation  you can control  in the  WINDOWS Task-manager --> Dienste (=services)   , that actually  a service named   mpich2_smpd   is running.
            Without this service running, MPICH2 will not work.

            You may test now the MPICH2 installation by  a little test program to calculate pi
            by typing:      mpiexec -n 2 -localonly "C:\Program Files"\MPICH2\examples\cpi.exe

     5.)  That's all.
            If you later ever should have killed the   mpich2_smpd   service ,
           you can  start it again  by the command    "C:\Program Files"\MPICH2\bin\smpd.exe -install
            But this must be done in a command-window 'as administrator', see 2.) above .

Mr. Krishna, I suggest that in the   MPICH2 Installer's Guide   these steps on WIN7 (especially the 2.) )  should be expressed more clearly. 
You must keep in mind, that MPICH2 is also used my people like me being neither WINDOWS nor MPI specialists.

Thank you for your help!
   Michael Rachner



-----Ursprüngliche Nachricht-----
Von: Jayesh Krishna [mailto:jayesh at mcs.anl.gov] 
Gesendet: Dienstag, 18. September 2012 18:57
An: Rachner, Michael
Cc: mpich-discuss at mcs.anl.gov
Betreff: Re: AW: [mpich-discuss] installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)

Hi,
 Looks like an issue with the MPICH2 installation.
 Please uninstall MPICH2 and re-install it following instructions in Section 9.4 (not 9.1) of the MPICH2 installer's guide.

Regards,
Jayesh

----- Original Message -----
From: "Michael Rachner" <Michael.Rachner at dlr.de>
To: jayesh at mcs.anl.gov
Sent: Monday, September 17, 2012 3:59:23 AM
Subject: AW: [mpich-discuss] installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)

Dear Mr. Krishna,

Thank you for your fast answer! 
I have deinstalled both MPICH2 installations (ia-32 and x86-64) , installed (as administrator) once again only the 64-bit version of MPICH2 (my Win7 is 64-bit), And it get this, when trying to run cpi.exe on the command line (I have copied cpi.exe to d:\ ):

§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Windows\System32>cd \Program Files\MPICH2\bin

C:\Program Files\MPICH2\bin>mpiexec -n 4 d:\cpi.exe Error while connecting to host, Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. (10
061)
Connect on sock (host=VT-001016D.intra.dlr.de, port=8676) failed, exhaused all end points Unable to connect to 'VT-001016D.intra.dlr.de:8676', sock error: Error = -1


C:\Program Files\MPICH2\bin>mpiexec -n 4 -localonly d:\cpi.exe Unknown option: -d Error while connecting to host, Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. (10
061)
Connect on sock (host=VT-001016D.intra.dlr.de, port=8676) failed, exhaused all end points Unable to connect to 'VT-001016D.intra.dlr.de:8676', sock error: Error = -1

ReadFile() failed, error 109
unable to start the local smpd manager.

C:\Program Files\MPICH2\bin>smpd.exe -install OpenSCManager failed:
Zugriff verweigert (error 5)
Unable to remove the previous installation, install failed.

C:\Program Files\MPICH2\bin>smpd.exe -start OpenSCManager failed:
Zugriff verweigert (error 5)

C:\Program Files\MPICH2\bin>
§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§

The problem seems to be the smpd.exe, which is not running, and I cannot start it.

Have you an idea?
   Michael Rachner



-----Ursprüngliche Nachricht-----
Von: Jayesh Krishna [mailto:jayesh at mcs.anl.gov]
Gesendet: Freitag, 14. September 2012 17:58
An: mpich-discuss at mcs.anl.gov
Cc: Rachner, Michael
Betreff: Re: [mpich-discuss] installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)

Hi,
 MPICH2 does not (unfortunately) support installing ia32 and x86_64 versions of the software stack on the same system. Uninstall MPICH2 (all versions) installed in your system and follow the steps below.
 Find out whether your OS is 64-bit or 32-bit (Control panel). If your OS is 64-bit install mpich2-1.4.1p1-win-x86-64.msi, if your OS is 32-bit install mpich2-1.4.1p1-win-ia32. Run the example program cpi.exe in "C:\Program Files\MPICH2\examples" (or depending on your install directory) directory to see if MPICH2 works.

Regards,
Jayesh

----- Original Message -----
From: "Michael Rachner" <Michael.Rachner at dlr.de>
To: mpich-discuss at mcs.anl.gov
Sent: Friday, September 14, 2012 4:39:04 AM
Subject: [mpich-discuss] installation of MPI2-1.4.1p1 on Win7-PC does not work (SMPD problem?)





Dear developers of MPICH2, 



I tried to install MPICH2 on my Windows7 (64-bit) PC (Intel XEON Quadcore, 16 GB RAM). 



I do not know, which of the 2 packages that can be downloaded for Windows from 

http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads 

is the right one for my PC: 



mpich2-1.4.1p1-win-x86-64.msi 

or: mpich2-1.4.1p1-win-ia32 



First question: which of the 2 packages is the right one? 



So I installed both (logged in as administrator) . But with none of them I am able to run my SPRAYCORE.exe executable. 

I use the following small batch-script runMPICH to start the execution under MPICH: 



§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§ 



@echo ON 

@echo. 

@echo ############################################################### 

@echo Start of script to run the SPRAYCORE-executable using MPICH 

@echo on %1 processes under WINDOWS 

@echo at: %DATE% %TIME% 

@echo. 

@echo script name : %0 

@echo. 

@echo with given argument: %* 

@echo. 

@echo ############################################################### 



@REM --this is the installation obtained from installing the package mpich2-1.4.1p1-win-ia32. msi ( downloaded 2012-09-13): 

@rem @set MPI_DIR=C:\Program Files (x86)\MPICH2 

@REM --this is the installation obtained from installing the package mpich2-1.4.1p1-win-x86-64 ( downloaded 2012-09-14): 

@set MPI_DIR=C:\Program Files\MPICH2 



@if qqq %1 neq qqq goto L10 

@echo **** ERROR: This script requires 1 argument, being the desired number (^>0) of processes 

@echo --^> STOP will follow. 

@goto EXIT 

:L10 



@set NUMPROCSWORLD=%1 



@if qqq %NUMPROCSWORLD% LEQ qqq1 ( 



SPRAYCORE.exe 



) else ( 



@rem "%MPI_DIR%"\bin\mpiexec.exe -help2 



echo. 

echo "%MPI_DIR%"\bin\smpd.exe -install 

"%MPI_DIR%"\bin\smpd.exe -install 



echo. 

echo "%MPI_DIR%"\bin\mpiexec.exe -n %NUMPROCSWORLD% - localonly -l SPRAYCORE.exe -use_mpi 

"%MPI_DIR%"\bin\mpiexec.exe -n %NUMPROCSWORLD% - localonly -l SPRAYCORE.exe -use_mpi 

) 

:EXIT 



§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§ 

It got the following answers when running both installations: 



This is the answer when using the installation from mpich2-1.4.1p1-win-x86-64.msi : 





C:\Windows\System32>runMPICH 4 



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

Start of script to run the SPRAYCORE-executable using MPICH 

on 4 processes under WINDOWS 

at: 14.09.2012 10:31:23.21 



script name : runMPICH 



with given argument: 4 



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



"C:\Program Files\MPICH2"\bin\smpd.exe -install 

OpenSCManager failed: 

Zugriff verweigert (error 5) 

Unable to remove the previous installation, install failed. 



"C:\Program Files\MPICH2"\bin\mpiexec.exe -n 4 -localonly -l SPRAYCORE.exe -use_mpi 

Unknown option: -d 

Error while connecting to host, Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. (10 

061) 

Connect on sock (host=VT-001016D.intra.dlr.de, port=8676) failed, exhaused all end points 

Unable to connect to 'VT-001016D.intra.dlr.de:8676', 

sock error: Error = -1 



ReadFile() failed, error 109 

unable to start the local smpd manager. 

C:\Windows\System32> 





And this is the answer when running the installation from mpich2-1.4.1p1-win-ia32. msi : 



C:\Windows\System32>runMPICH 4 



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

Start of script to run the SPRAYCORE-executable using MPICH 

on 4 processes under WINDOWS 

at: 14.09.2012 10:28:38.09 



script name : runMPICH 



with given argument: 4 



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



"C:\Program Files (x86)\MPICH2"\bin\smpd.exe -install 

OpenSCManager failed: 

Zugriff verweigert (error 5) 

Unable to remove the previous installation, install failed. 



"C:\Program Files (x86)\MPICH2"\bin\mpiexec.exe -n 4 -localonly -l SPRAYCORE.exe -use_mpi 

Please specify an authentication passphrase for smpd: 

Unknown option: -d 

Please specify an authentication passphrase for smpd: 

Error while connecting to host, Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. (10 

061) 

Connect on sock (host=VT-001016D.intra.dlr.de, port=8676) failed, exhaused all end points 

Unable to connect to 'VT-001016D.intra.dlr.de:8676', 

sock error: Error = -1 



ReadFile() failed, error 109 

unable to start the local smpd manager. 

C:\Windows\System32> 





The host name mentioned in the answers is indeed correct: VT-001016D.intra.dlr.de 

Translation of: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. 

No connection could be established, because the goal-computer refused the connection. 



You see that the answers of the 2 installations differ only by asking the authentification SMPD passphrase (still ‘behappy’) or not. 

It makes no difference, whether I do that as an administrator or as a normal user. 

(By the way: It is cumbersome to be asked at every MPICH run for entering the passphrase!) 



You see, there is a problem with the smpd.exe. The task manager shows that there is no process smpd.exe running on my machine. 

(In contrast, on a WinXP-machine (32-bit) of a collegue that process is running automatically since startup of the computer. And there MPICH works.) 



My 2 nd Question: Can you help me? 





Thank You, 



Michael Rachner 














_______________________________________________
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
_______________________________________________
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


More information about the mpich-discuss mailing list