Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Open MPI on Cygwin
From: Shiqing Fan (fan_at_[hidden])
Date: 2010-12-13 04:31:05


Hi Siegmar,

Building Open MPI under Cygwin is not the way we recommend, it's not
easy, and the building time is extremely long. Actually if you have
CMake and Visual Studio installed, then it's pretty easy to build Open
MPI binary, but of course you have to port your GNU makefiles.

If there is anything I can help, e.g. providing an installer of Open MPI
binary, please just let me know.

Regards,
Shiqing

On 12/10/2010 3:54 PM, Siegmar Gross wrote:
> Hello Shiqing,
>
> thank you very much for your reply. I want a working MPI implementation on my
> Notebook. At the moment I still use LAM-MPI on Cygwin on Windows XP
> Professional
> SP3. Unfortunately LAM-MPI will not be supported any longer so that I am
> looking for a replacement. I use MPI for my courses and I implement small
> programs on my Notebook before I run them on our Solaris and Linux machines.
> I thought that I need some kind of Windows Server for MPI on Windows so
> that I didn't try building it on Windows. If I can build Open MPI on Cygwin,
> I would prefer Cygwin because I have for all programs GNUmakefiles which
> I would have to port to Windows Makefiles if I use MPI on Windows. If it isn't
> possible to build Open MPI on Cygwin, I will try to build it directly on
> Windows and I will port my GNUmakefiles in that case.
>
> Kind regards
>
> Siegmar
>
>
> On Fri, 10 Dec 2010 09:16:53 +0100, Shiqing Fan<fan_at_[hidden]> wrote:
>> Hello Siegmar,
>>
>> Do you have to use Open MPI that build with Cygwin? If not, you can
>> simply use CMake and Visual Studio to compile it. Please refer to the
>> README.WINDOWS file in the main directory.
>>
>>
>> Regards,
>> Shiqing
>>
>> On 12/9/2010 4:24 PM, Siegmar Gross wrote:
>>> Hi,
>>>
>>> I know that you don't try to port Open Mpi to Cygwin at the moment but
>>> perhaps you can give me a hint how to proceed. I tried to build
>>> openmpi-1.5.1rc1 on Cygwin 1.5.25 with gcc-4 with the following options.
>>>
>>> ../openmpi-1.5.1rc1r24104/configure
>>> --prefix=/usr/local/openmpi-1.5.1-gcc-4
>>> CC=gcc-4 CPP=cpp-4 CXX=g++-4 CXXCPP=cpp-4 F77=gfortran-4 FC=gfortran-4
>>> CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 CXXLDFLAGS=-m32
>>> LDFLAGS=-m32 CPPFLAGS= C_INCL_PATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH=
>>> OBJC_INCLUDE_PATH= MPIHOME= --without-udapl --without-openib
>>> --without-cs-fs --enable-mpi-f90 --with-mpi-f90-size=small
>>> --enable-heterogeneous --enable-cxx-exceptions --enable-shared
>>> --enable-orterun-prefix-by-default --with-threads=posix
>>> --enable-mpi-threads --disable-progress-threads --disable-vt
>>>
>>> "--disable-vt" was necessary to avoid some errors. I got the following
>>> output in config.log.
>>>
>>> ## --------- ##
>>> ## Platform. ##
>>> ## --------- ##
>>>
>>> hostname = eiger
>>> uname -m = i686
>>> uname -r = 1.5.25(0.156/4/2)
>>> uname -s = CYGWIN_NT-5.1
>>> uname -v = 2008-06-12 19:34
>>>
>>> /usr/bin/uname -p = unknown
>>> /bin/uname -X = unknown
>>>
>>> /bin/arch = i686
>>> /usr/bin/arch -k = unknown
>>> /usr/convex/getsysinfo = unknown
>>> /usr/bin/hostinfo = unknown
>>> /bin/machine = unknown
>>> /usr/bin/oslevel = unknown
>>> /bin/universe = unknown
>>> ...
>>>
>>>
>>> My configure-log-file contains the following two lines:
>>>
>>> checking for architecture... i686
>>> configure: WARNING: Unknown architecture ... proceeding anyway
>>>
>>> In my opinion all other warnings in that file are unimportant because
>>> I get them on Solaris and Linux as well. "make" breaks with some errors.
>>>
>>> eiger openmpi-1.5.1-Cygwin.x86_gcc-4 56 grep -i error
>>> log.make.Cygwin.x86_gcc-4 | more
>>> ...
>>>
>>> CC error.lo
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:72: error:
>>> 'HKEY' undeclared (first use in this function)
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:72: error:
>>> (Each undeclared identifier is reported only once
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:72: error:
>>> for each function it appears in.)
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:72: error:
>>> expected ';' before 'ompi_key'
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:82: error:
>>> 'ERROR_SUCCESS' undeclared (first use in this function)
>>> .../opal/mca/installdirs/windows/opal_installdirs_windows.c:82: error:
>>> 'HKEY_LOCAL_MACHINE' undeclared (first use in this function)
>>> ...
>>>
>>>
>>> "opal_installdirs_windows.c" needs some header files which are not
>>> available.
>>>
>>> eiger openmpi-1.5.1-Cygwin.x86_gcc-4 79 find . -name constants.h
>>> eiger openmpi-1.5.1-Cygwin.x86_gcc-4 80 find . -name installdirs.h
>>> eiger openmpi-1.5.1-Cygwin.x86_gcc-4 81 find . -name opal_config.h
>>> ./opal/include/opal_config.h
>>>
>>> What can I do, that the first two files will be created? Are they
>>> necessary for Cygwin or is it only windows stuff? How can I avoid
>>> the windows-subtree in Cygwin if it is not necessary? Thank you very
>>> much for any help in advance.
>>>
>>> Kind regards
>>>
>>> Siegmar
>>>
>>> _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>