You are on page 1of 2

Installing Open MPI 1.3 in a Cygwin environment with gcc-3.4.

Installing Open MPI in a Cygwin 1.5 environment


(Windows 2000/XP with NTFS, gcc-3.4.4)

1)

Login as Administrator to install Open MPI. Download the necessary file from
http://www.open-mpi.org.

2)

Check that the environment variable OPAL_PREFIX isnt defined. The command echo
$OPAL_PREFIX should display OPAL_PREFIX: undefined variable. Otherwise you
have to put a comment character in front of the line set MPI = openmpi- in the file
$HOME/.cshrc, close Cygwin, and open it again. Its also necessary that cygserver is
running as a Windows service (have a look at my Cygwin installation guide if necessary).
Now you can start to build Open MPI.
a)

bunzip2 -c openmpi-1.3.tar.bz2 | tar xf -

b) cd openmpi-1.3
At first you must fix a problem. Add #define NOMINMAX before the line
#include MCA_timer_IMPLEMENTATION_HEADER and #undef
NOMINMAX after that line in file ompi/tools/ompi_info/param.cc.
c)

I used the following commands to configure, make, and install openmpi-1.3 (you must
use my environment to get SYSTEM_ENV and MACHINE_ENV defined).
configure --prefix=/usr/local/openmpi-1.3 \
CFLAGS="" CXXFLAGS="" FFLAGS="" FCFLAGS="" \
CPPFLAGS="" C_INCL_PATH="" C_INCLUDE_PATH="" \
CPLUS_INCLUDE_PATH="" OBJC_INCLUDE_PATH="" \
--without-udapl \
--enable-cxx-exceptions --enable-mpi-threads \
--enable-progress-threads --with-threads=posix \
--enable-static --without-cs-fs \
--enable-heterogeneous --with-mpi-param_check=always \
--enable-contrib-no-build=vt \
--enable-mca-no-build=memory_mallopt,paffinity \
|& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV
make check |& tee log.make-check.$SYSTEM_ENV.$MACHINE_ENV
make install |& tee log.make-install.$SYSTEM_ENV.$MACHINE_ENV

d)

If you like you can clean up everything now.


make distclean

3)

Unfortunately some programs dont work at the moment so that you cant use Open MPI.

University of Applied Sciences Fulda, Prof. Dr. S. Gro

Installing Open MPI 1.3 in a Cygwin environment with gcc-3.4.4

Remarks:
1)

Many thanks to a lot of people in different mailing lists helping me to solve some errors.

2)

MPI and the firewall ZoneAlarm dont work well together. Therefore its best to stop
ZoneAlarm or any other firewall when you are working with MPI.

3)

When mpiexec -app <application schema file> results in an error message similar to
Failed to find the following executables: then the lines in the application schema file
are possibly terminated with an Windows/MS-DOS <carriage return/line feed> and ^M
will be interpreted as part of the file name. Use dos2unix to remove the trailing ^M.

4)

If you install a newer version of MPI you must upgrade the files .cshrc and .mpi.csh in all
home directories as well.

5)

Please let me know if you find any errors in this description or have any improvements.

University of Applied Sciences Fulda, Prof. Dr. S. Gro

You might also like