[mpich-discuss] mpich2-1.3rc2.tar.tar under cygwin+WINDOWS Server 2003 R2 installation problem

jayesh at mcs.anl.gov jayesh at mcs.anl.gov
Tue Oct 12 14:14:36 CDT 2010


Hi,
 We do not provide a compiler wrapper like mpicc with MPICH2 on windows. To compile programs using Visual Studio on Windows follow the instructions in the windows developer's guide Section 9.10 (http://www.mcs.anl.gov/research/projects/mpich2/documentation/files/mpich2-1.2.1-windevguide.pdf).
 You can also specify the include/lib path and the MPI library (mpi.lib) from command line with ifort (See the IVF user guide for details - http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/lin/main_for_lin.pdf).

(PS: I use the following command to compile from command line,
C:\>ifort /I"C:\Program Files\MPICH2\include" fpi.f /link /LIBPATH:"C:\Program Files\MPICH2\lib" fmpich2.lib
)

Regards,
Jayesh
----- Original Message -----
From: "Victor Gillette" <victor.gillette at ncsu.edu>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Tuesday, October 12, 2010 11:57:59 AM GMT -06:00 US/Canada Central
Subject: Re: [mpich-discuss] mpich2-1.3rc2.tar.tar under cygwin+WINDOWS Server 2003 R2 installation problem



Hi Jayesh!!, 

I ran: 

E:\Victor\soft\MPICH2>smpd -version 
1.0.3 


later I found some other mpiexec inside MathLab, so I redefined the path to 


E:\Victor\soft\MPICH2>path="C:\Program Files\MPICH2";"C:\Program Files\MPICH2"\bin 

now I got: 

E:\Victor\MCNP\CHECK\VIC\test>smpd -version 
1.2.1p1 

E:\Victor\soft\MPICH2>mpiexec -n 2 hostname 
User credentials needed to launch processes: 
account (domain\user) [TRISO\Administrator]: 
password: 
TRISO 
TRISO 

which looks promising. 

Unfortunately I do not know how to compile the code you sent me, because I find: 


C:\Documents and Settings\vhgillette>ifort 
Intel(R) Fortran Compiler for Intel(R) EM64T-based applications, Version 9.1 
Build 20060324 
Copyright (C) 1985-2006 Intel Corporation. All rights reserved. 
ifort: Command line error: no files specified; for help type "ifort /help" 

E:\Victor\soft\MPICH2>mpicc 
'mpicc' is not recognized as an internal or external command, 
operable program or batch file. 


E:\Victor\soft\MPICH2>mpif77 
'mpif77' is not recognized as an internal or external command, 
operable program or batch file. 

although I found in cygwin than gcc and g++ are legal commands, they are not recognized in the DOS command window. Should I install these compiler in Windows and reinstall MPICH2? 

Thanks 



Victor 




On Tue, Oct 12, 2010 at 12:20 PM, Jayesh Krishna < jayesh at mcs.anl.gov > wrote: 


Hi, 

# Do you have another MPI library installed in your machine (e.g. Microsoft's MPI)? 
# Is mpiexec pointing to the windows version installed using the installer (which mpiexec)? 
# Is there a Cygwin version of SMPD (part of MPICH2 installed on Cygwin) running on your system ? 
# What does "smpd -version" show you ? 

I would recommend that you modify the "Path" environment variable (system path) on windows such that MPICH2's bin (C:\Program Files\MPICH2\bin) directory is the first one in the path. 


Regards, 
Jayesh 
----- Original Message ----- 
From: "Victor Gillette" < victor.gillette at ncsu.edu > 
To: mpich-discuss at mcs.anl.gov 



Sent: Tuesday, October 12, 2010 11:11:30 AM GMT -06:00 US/Canada Central 
Subject: Re: [mpich-discuss] mpich2-1.3rc2.tar.tar under cygwin+WINDOWS Server 2003 R2 installation problem 




Hi, Thanks for your answer!! 

I certainly do not know what am I doing, I just try to read manuals and find tutorials, quite unsuccessfully, though. 

All the installation processes I did were run under an Administrator account. 

I followed your instrctions and I got : 


E:\Victor\soft\MPICH2>mpiexec -n 2 hostname 
Aborting: unable to connect to TRISO, smpd version mismatch 

could it be because I am running on a Windows Server 2003 R2, and not on a 2008?? 

Suggestions are welcome!!! 

Thanks 

Victor 






On Tue, Oct 12, 2010 at 11:52 AM, < jayesh at mcs.anl.gov > wrote: 


Hi, 

>> ...mpich2-1.2.1p1-win-x86-64.msi... mpiexec answered something like smpd was not the right version. 

Did you install MPICH2 from an administrator command prompt ? Windows flavors Vista/7/Srv2008 need extra information in the installers for installing the package as an administrator (The flavor of Visual Studio that we use to compile MPICH2 does not support adding these additional info - We have an open ticket on this issue, https://trac.mcs.anl.gov/projects/mpich2/ticket/1070 , and we plan to fix it soon). 
We do not recommend users to use "smpd -install" to install SMPD on windows (Unless you know what you are doing). The windows installer should automatically install the process manager for you. 
Please follow the steps below and let us know if it works for you, 

# Uninstall any versions of MPICH2 installer in your machine (Control panel --> Add/Remove programs --> Uninstall) 
# Right-click on the command prompt icon and select "Run as administrator" (Note that opening a command prompt as an administrator does not give you an administrator command prompt). This opens an administrator command prompt 
# Use the msiexec utility to install MPICH2 (Type "msiexec /i mpich2-1.2.1p1-win-x86-64.msi" at the administrator command prompt) from the administrator command prompt 
# The command above pops up the installer GUI to install MPICH2. 
# After installing MPICH2, type "mpiexec -n 2 hostname" at the command prompt to check if MPICH2 is working (The MPICH2 job launcher might prompt you for user credentials to launch the executables. Provide them when prompted.). 
# Compile/Run a simple hello world program ( https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk/examples/f77/hellow.f ) 

Installing MPICH2 on windows using an installer would be the easiest way to getting started with MPICH2 on windows (and you get better performance than MPICH2 on Cygwin). 
Let us know the results. 

Regards, 
Jayesh 




----- Original Message ----- 
From: "Victor Gillette" < victor.gillette at ncsu.edu > 
To: mpich-discuss at mcs.anl.gov 
Sent: Tuesday, October 12, 2010 10:30:30 AM GMT -06:00 US/Canada Central 
Subject: [mpich-discuss] mpich2-1.3rc2.tar.tar under cygwin+WINDOWS Server 2003 R2 installation problem 

Hi. I am interested in running MCNP parallel on a Windows Server 2003 R2 64 
bits System with Intel fortran Compiler and cygwin installed and working. 

First I tried installing 

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

but mpiexec answered something like smpd was not the right version. 

Then I ran smpd -install 

and when trying to run mpiexec nothing happened. 

I read that hydra would be a more robust manager instead of smpd, so I 
downloaded the source files of 

mpich2-1.3rc2.tar.tar 

because the pages with binaries were not available and I ran 

./configure 
make 
make install 

I found some issues while make, like datatypes for Fortran were not defined 
in mpi.h of mpif.h . What I did to patch these problems is copying the 
values for these definitions from the mpif.h and mpi.h files of the previous 
version I had installed. I have no idea if this is completely crazy or a 
reasonable assumption, but make ended OK. There was another issue which was 
that a file setbotf.o was not found in binding/f77 but I found the 
file setbotf.obj , so I 
renamed the file to have .o extension and make and make install ended 
successfully. 

I was able to compile Hiworld.c but it doesn't run. I was not able to 
compile Hiworld.f (datatypes ended with ")" when something else was expected. 

I created all MPICH twice the first time with all defaults, which 
produced HYDRA, and a second time with MPD because I found no 
explanation about how to start HYDRA in the manual. 

With MPD I defined the file .mpd.conf in my home folder and the file 
mpd.conf in the /etc folder 

I started MPD with 

mpd --ncpus=8 & 

and if I type 

mpdtrace 

the code answers my system name. 

if I type 

mpiexec -n 4 ls 

the output of ls is shown 4 times on the screen. 

I can create a.exe with 

mpicc Hi.c 

successfully, however these are the outputs of different commands I tried: 

$ mpiexec Hic.exe 
missing num_proc flag: -n, -np, -hosts, or -localonly. 
Unable to parse the mpiexec command arguments. 

vhgillette at TRISO /cygdrive/e/Victor/MCNP/CHECK/VIC/test 
$ mpiexec -n 2 Hic.exe 

vhgillette at TRISO /cygdrive/e/Victor/MCNP/CHECK/VIC/test 
$ ./Hic.exe 
argx 2280688 argv ô 
Hello from processor 0 of 1 


so, please, could anyone ive me some advise about how to run mpi 
successfully on my system? 

Thanks 

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



-- 
========================== 
Victor Gillette, Ph.D. 
Research Associate 
Nuclear Reactor Program 
Department of Nuclear Engineering 
North Carolina State University 
P.O. Box 7909 
2500 Stinson Dr. 
Raleigh, NC 27695-7909 
TE 919-515-3302 
========================== 

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



-- 
========================== 
Victor Gillette, Ph.D. 
Research Associate 
Nuclear Reactor Program 
Department of Nuclear Engineering 
North Carolina State University 
P.O. Box 7909 
2500 Stinson Dr. 
Raleigh, NC 27695-7909 
TE 919-515-3302 
========================== 


More information about the mpich-discuss mailing list