Hi Damien,

 

Thanks for the detailed instructions!

Here's my progress:

 

1)  Download this:  
http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.tar.gz
<http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.tar.gz
> 

Done

2)  Extract that to somewhere on your hard drive.  My path was
C:\projects6\openmpi-1.6.  I renamed it to C:\projects6\openmpi-1.6-64.
You can use 7-Zip to extract tgz archives on Windows.

Extracted to C:\OMPI\openmpi-1.6


3)  Start the CMake GUI.  Set the source and build directories.  Mine
were C:/projects6/openmpi-1.6-64 and C:/projects6/openmpi-1.6-64/build

Does it matter where I run CMake from? I've put Cmake-2.8.8-win32-x86 in
C:\OMPI\openmpi-1.6

4)  Press Configure.  Say Yes if it asks you to create the build
directory.

Done

5)  Look at the generator view that comes up.  I chose Visual Studio 9
2008 Win64 but you can select whatever you have on your system.  Click
Specify Native Compilers.  This will make sure you get the right
compilers.

I chose Visual Studio 9 2008 Win64.

In the C and C++ compiler, I put "C:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\bin\amd64\cl.exe".  You can navigate to which one
you have.

I have "C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/bin/cl.exe"

In the Fortran compiler, I put "C:/Program Files (x86)/Intel/Composer XE
2011 SP1/bin/intel64/ifort.exe".  You can navigate to which one you
have.

I do not have a Fortran compiler

Press Finish once you have selected the compilers and the config will
start.  Takes a couple of minutes on my laptop.

I get an error message saying: Error in configuration process. Project
files may be invalid

I've attached the text that the CMake GUI generated for the error.


--

Vimal

 

From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of Damien
Sent: Wednesday, June 13, 2012 5:38 PM
To: Open MPI Users
Subject: Re: [OMPI users] Building MPI on Windows

 

Vimal,

Here's how to build OpenMPI with Visual Studio and CMake.  These are
exact steps.

1)  Download this:  
http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.tar.gz

2)  Extract that to somewhere on your hard drive.  My path was
C:\projects6\openmpi-1.6.  I renamed it to C:\projects6\openmpi-1.6-64.
You can use 7-Zip to extract tgz archives on Windows.

3)  Start the CMake GUI.  Set the source and build directories.  Mine
were C:/projects6/openmpi-1.6-64 and C:/projects6/openmpi-1.6-64/build

4)  Press Configure.  Say Yes if it asks you to create the build
directory.

5)  Look at the generator view that comes up.  I chose Visual Studio 9
2008 Win64 but you can select whatever you have on your system.  Click
Specify Native Compilers.  This will make sure you get the right
compilers.

In the C and C++ compiler, I put "C:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\bin\amd64\cl.exe".  You can navigate to which one
you have.

In the Fortran compiler, I put "C:/Program Files (x86)/Intel/Composer XE
2011 SP1/bin/intel64/ifort.exe".  You can navigate to which one you
have.

Press Finish once you have selected the compilers and the config will
start.  Takes a couple of minutes on my laptop.

First things first.  If you want a Release build, you have to change a
CMake setting.  The 5th line down in the red window will say
CMAKE_BUILD_TYPE.  Change the text (type it in) to say Release if you
want a Release build, otherwise the final install step won't work.

Also, further down the red window there's some options you should
change.  Scroll down through that window, there's a lot to choose from.
I usually check OMPI_RELEASE_BUILD, OMPI_WANT_F77_BINDINGS and
OMPI_WANT_F90_BINDINGS.  OMPI_WANT_CXX_BINDINGS should already be
checked.  (Note to Jeff & Shiqing: We should probably work out a good
set of standard choices if there are others on top of these).

6)  Press Configure again, and CMake will go through identifying the
Fortran compiler if you asked for Fortran bindings and a few other
things.  It should work fine with the options above.

7)  Assuming that it was fine, press Generate.  That produces an
OpenMPI.sln project for Visual Studio, it's in whatever directory you
specified as your build directory.

8)  Open the sln in Visual Studio.  Open the Properties of "Solution
'OpenMPI'".  Look at Configuration Properties - Configuration.  Check
the Configuration button at the top, it might say Debug, but it should
say Release if you changed CMAKE_BUILD_TYPE earlier.  If it says Debug,
change the drop-down to Release.  Click OK.  Then open the Properties
again and make sure what you selected is right, otherwise change it,
press OK again.  Visual Studio does that sometimes.

9)  Moment of Truth.  Right-click on "Solution 'OpenMPI'" and select
Build Solution.  The compile should start.

10)  Wait.

11)  Wait some more.

12)  Grab a snack (or a beer.....), this will take a while, 15-20
minutes.

13)  If the build was successful (it should be), there's one last step.
Right-click on the INSTALL sub-project and click Build.  That will
organise the header files, libraries and binaries into a set of
directories, under whatever directory you said your source is in with
CMake.  On mine it was C:\projects6\openmpi-1.6\installed.  In there
you'll see bin, include, lib and share directories.  That's a complete
OpenMPI build with everything you need.

If you'd like to try this and provide feedback, we can tweak the
instructions until they're bulletproof.  I can help you build with
whatever compilers you have on your system, just post back to the list.
I don't do Cygwin though.  Doing HPC on Windows is weird enough.....
:-)

Damien

On 13/06/2012 1:35 PM, vimalmat...@eaton.com wrote: 

What do I do after I run it?

 

--

Vimal

 

From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of Ralph Castain
Sent: Wednesday, June 13, 2012 3:32 PM
To: Open MPI Users
Subject: Re: [OMPI users] Building MPI on Windows

 

I'm not a Windozer, so I can't speak to the port for that platform.
However, the conversation here seems strange to me. Have you actually
read the instructions on the open-mpi.org web site?

 

Looks pretty simple to me. You download the .exe installer for either 32
or 64 bits, and run it. You don't build OMPI from source - the distro
contains everything you need to just run.

 

See:

 

http://www.open-mpi.org/software/ompi/v1.6/

 

for the software and some Windows notes.

 

 

On Jun 13, 2012, at 1:20 PM, Trent Creekmore wrote:






I just gave up and stuck with Unix/Linux.  Eclipse IDE offers a very
nice plugin for developing and debugging MPI code named Parallel Tools
Platform. Something not available in Visual Studio, except for similar
one made by Intel, but I believe you have to use their compiler.

 

You could always run Eclipse remotely from any Windows OS using a Secure
Shell client and Xming (A Windows based X Server). That is what I do,
and no more wasting time trying to get OMPI trying to run on Windows.

 

From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of vimalmat...@eaton.com
Sent: Wednesday, June 13, 2012 2:09 PM
To: us...@open-mpi.org; us...@open-mpi.org
Subject: Re: [OMPI users] Building MPI on Windows

 

I've tried the Cygwin way.
Been hitting roadblocks for a week now. I've just uninstalled everything
and started from scratch again.

--
Vimal


-----Original Message-----
From: users-boun...@open-mpi.org on behalf of Trent Creekmore
Sent: Wed 6/13/2012 2:47 PM
To: 'Open MPI Users'
Subject: Re: [OMPI users] Building MPI on Windows

This may, or may not be helpful, but I have tried the Windows offerings.
I have never gotten anything to function was expected. Compiling, or the
available binaries. I think they just don't work at all.



My suggestion which I feel would be easier, and less headache way would
be to install something like CygWin, which would give you a Unix/Linux
like environment running under Windows.

You would only need to compile it in CygWin just like the Linux/Unix
docs say to do.



I don't know if anyone else has done it this way or not.





From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of vimalmat...@eaton.com
Sent: Wednesday, June 13, 2012 1:32 PM
To: us...@open-mpi.org
Subject: [OMPI users] Building MPI on Windows



Hi,



I'm trying to follow the ReadMe file to build OpenMPI on Windows:



Step 1: Untar the contrib/platform/win32/ompi-static.tgz tarball in the
root directory of the Open MPI distribution.

I do not have ompi-static.tgz in the mentioned path.



Step 2: Go in the ompi/datatype subdirectory in the Open MPI
distribution and copy the following:  

datatype_pack.c   to datatype_pack_checksum.c        

datatype_unpack.c to datatype_unpack_checksum.c

I do not see these files in the mentioned path.



Step 4: Open the Open MPI project (.sln file) from the root directory of
the distribution.

I don't have a .sln file anywhere



Help anyone? Shiqing?



Thanks,

Vimal



From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of vimalmat...@eaton.com
Sent: Wednesday, June 13, 2012 11:21 AM
To: f...@hlrs.de
Cc: us...@open-mpi.org
Subject: Re: [OMPI users] Help with buidling MPI(Error: mpi.h not found)



I did make uninstall. I also deleted the folders of the other
implementation.

I ran ./configure and make all install.

At the end of the make I saw a bunch of errors for the makefiles. I've
attached the .log and .out files.



Please tell me if I'm on the right track.



Thanks,

Vimal



From: Shiqing Fan [mailto:f...@hlrs.de]
Sent: Wednesday, June 13, 2012 9:37 AM
To: Mathew, Vimal
Cc: Open MPI Users
Subject: Re: [OMPI users] Help with buidling MPI(Error: mpi.h not found)



Hi Vimal,

I'm not sure how you can uninstall  the other one, may be 'make
uninstall' from the source? Or you may also ask in their mailing list.

Another solution might use the full path for the executables, like
"c:\Program Files\OpenMPI_v1.6-win32\bin\mpicc hello.c" or under Cygwin:
"/cygdrive/c/Program\ Files/OpenMPI_v1.6-win32/bin/mpicc.exe hello.c".

Of course, I suggest to get rid of the other MPI implementation.

Shiqing


On 2012-06-13 3:17 PM, vimalmat...@eaton.com wrote:

Hi Shiqing,



I installed the LAN/MPI implementation first then the Open MPI
implementation.

Could this be the problem? If yes, how do I get rid of the LAN/MPI
implementation?



Thanks,

Vimal



From: Shiqing Fan [mailto:f...@hlrs.de]
Sent: Wednesday, June 13, 2012 4:49 AM
To: Open MPI Users
Cc: Mathew, Vimal
Subject: Re: [OMPI users] Help with buidling MPI(Error: mpi.h not found)



Hi Vimal,

The output looks strange. If you use the installer under Cygwin, mpicc
shouldn't try to link with liblammpio.* or any library in
/usr/local/lib. So I guess the mpicc is messed up with some previously
installed MPI implementations. Could you please verify that 'which
mpicc' is the one you installed?

Anyway, here I sent some screen shots that how it should look like under
Cygwin.

1 - run command 'mpicc chello.c'

2 - run command 'mpicc chello.c -o chello'

Regards,
Shiqing


 
On 2012-06-12 8:44 PM, vimalmat...@eaton.com wrote:

I ran OpenMPI_v1.6-1_win64.exe.
 Now I get this message:
        C9995799@SOUMIWHP5003567 ~/openmpi-1.6
        $ mpicc hello.c -o hello
        WARNING: mpicc expected to find liblammpio.* in /usr/local/lib
        WARNING: MPI-2 IO support will be disabled
        gcc: hello.c: No such file or directory
        mpicc: No such file or directory
--
Vimal


-----Original Message-----
From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of Jeff Squyres
Sent: Tuesday, June 12, 2012 2:30 PM
To: Open MPI Users
Subject: Re: [OMPI users] Help with buidling MPI(Error: mpi.h not found)

Probably easier to just run the Open MPI binary installer.


On Jun 12, 2012, at 2:24 PM, <vimalmat...@eaton.com> <
mailto:vimalmat...@eaton.com>  wrote:


        So I simply download and run OpenMPI_v1.6-1_win64.exe?
        Or is there a way to fix the Fortran compiler?
        
        --
        Vimal
        
        
        -----Original Message-----
        From: users-boun...@open-mpi.org [
mailto:users-boun...@open-mpi.org]
        On Behalf Of Jeff Squyres
        Sent: Tuesday, June 12, 2012 2:20 PM
        To: Open MPI Users
        Subject: Re: [OMPI users] Help with buidling MPI(Error: mpi.h
not
        found)
        
        It does not look like you successfully built Open MPI -- it
looks like



        Open MPI's configure script aborted because your Fortran
compiler
        wasn't
        behaving:
        
        -----
        checking if Fortran 77 compiler supports COMPLEX*16... yes
checking
        size of Fortran 77 COMPLEX*16... 16 checking alignment of
Fortran
        COMPLEX*16... 8 checking if Fortran 77 compiler supports
COMPLEX*32...
        no checking for max Fortran MPI handle index... ( 0x7fffffff <
        2147483647 ? 0x7fffffff : 2147483647 ) checking Fortran value
for

.TRUE.

        logical type... configure: error: Could not determine value of
Fortran



        .TRUE..  Aborting.
        -----
        
        Anything that happened after that is somewhat irrelevant because
Open
        MPI didn't configure properly.
        
        Looking in config.log, I see why:
        
        -----
        configure:44290: checking Fortran value for .TRUE. logical type
        configure:44386: gcc -DNDEBUG -g -O2 -finline-functions
        -fno-strict-aliasing -I. -c conftest.c
        configure:44393: $? = 0
        configure:44403: gfortran  -o conftest conftest.o conftestf.f
 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
        reopening conftest.exe: Device or resource busy
        
 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
        final link failed: Device or resource busy
        collect2: ld returned 1 exit status
        configure:44410: $? = 1
        configure:44427: error: Could not determine value of Fortran
.TRUE..
        Aborting.
        -----
        
        All this may be irrelevant, though, because it looks like you're
        building on Windows.
        
        In that case, you might well want to just download the OMPI
Windows
        binaries.  I don't know offhand if we support building on
Windows with



        the normal configure / make methodology; we normally use cmake
to
        build from source on Windows.
        
        
        
        On Jun 12, 2012, at 1:25 PM, <vimalmat...@eaton.com> <
mailto:vimalmat...@eaton.com>  wrote:
        

                Hi,
                
                I was directed to the OpenMPI website from the Boost
Libraries page
                to

        install an MPI Installation.

                I've followed all the steps in the installation guide to
configure
                and

        build MPI. When I try to compile the hello.c program which
contains
        <mpi.h>.

                I get an error message saying mpi.h does not exist I've
attached the
                config.log, config.out, make.out , ompi_info all and
make-install.out

        files.

                
                Any help will be greatly appreciated!
                
                Thanks,
                Vimal Mathew
                
 
<openmpi-1.6.7z>_______________________________________________
                users mailing list
                us...@open-mpi.org
                http://www.open-mpi.org/mailman/listinfo.cgi/users

        
        
        --
        Jeff Squyres
        jsquy...@cisco.com
        For corporate legal information go to:
        http://www.cisco.com/web/about/doing_business/legal/cri/
        
        
        _______________________________________________
        users mailing list
        us...@open-mpi.org
        http://www.open-mpi.org/mailman/listinfo.cgi/users
        
        _______________________________________________
        users mailing list
        us...@open-mpi.org
        http://www.open-mpi.org/mailman/listinfo.cgi/users



--
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/


_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users








--
---------------------------------------------------------------
Shiqing Fan
High Performance Computing Center Stuttgart (HLRS)
Tel: ++49(0)711-685-87234      Nobelstrasse 19
Fax: ++49(0)711-685-65832      70569 Stuttgart
http://www.hlrs.de/organization/people/shiqing-fan/
email: f...@hlrs.de



--
---------------------------------------------------------------
Shiqing Fan
High Performance Computing Center Stuttgart (HLRS)
Tel: ++49(0)711-685-87234      Nobelstrasse 19
Fax: ++49(0)711-685-65832      70569 Stuttgart
http://www.hlrs.de/organization/people/shiqing-fan/
email: f...@hlrs.de

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

 






_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users
Check for working C compiler using: Visual Studio 9 2008 Win64
Check for working C compiler using: Visual Studio 9 2008 Win64 -- broken
CMake Error at 
cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  9.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/OMPI/openmpi-1.6/build/CMakeFiles/CMakeTmp

  

  Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec358465006

  

  Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.

  Copyright (C) Microsoft Corp 2007.  All rights reserved.

  

  The project consists entirely of configurations that require support for
  platforms which are not installed on this machine.  The project cannot be
  loaded.

  The project consists entirely of configurations that require support for
  platforms which are not installed on this machine.  The project cannot be
  loaded.

  Invalid project

  

  Use:

  vcexpress [solutionfile | projectfile | anyfile.ext] [switches]

  

  The first argument for devenv is usually a solution file or project file.

  You can also use any other file as the first argument if you want to have
  the

  file open automatically in an editor.  When you enter a project file, the
  IDE

  looks for an .sln file with the same base name as the project file in the

  parent directory for the project file.  If no such .sln file exists, then
  the

  IDE looks for a single .sln file that references the project.  If no such
  single

  .sln file exists, then the IDE creates an unsaved solution with a default
  .sln

  file name that has the same base name as the project file.

  

  Command line builds:

  devenv solutionfile.sln /build [ solutionconfig ] [ /project
  projectnameorfile [ /projectconfig name ] ]

  Available command line switches:

  

  /Log          Logs IDE activity to the specified file for troubleshooting.

  /ResetSettings        Restores the IDE's default settings, optionally resets 
to

                the specified VSSettings file.

  /SafeMode     Launches the IDE in safe mode loading minimal windows.

  

  Product-specific switches:

  

  /debugexe     Open the specified executable to be debugged.  The

                remainder of the command line is passed to this

                executable as its arguments.

  /useenv               Use PATH, INCLUDE, LIBPATH, and LIB environment 
variables

                instead of IDE paths for VC++ builds.

  

  To attach the debugger from the command line, use:

        VsJITDebugger.exe -p <pid>

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:22 (PROJECT)


Configuring incomplete, errors occurred!

Reply via email to