[Parallel Graph] MPI installation procedure

Hi to all, I'm searching for a detailed procedure to install MPI (such OpenMPI) under Win32 (WinXP in my case) with Boost, and some sample code to use the parallel graph algorithm. Can someone help me? Thanks, Cosimo Calabrese.

Cosimo Calabrese wrote:
I'm searching for a detailed procedure to install MPI (such OpenMPI) under Win32 (WinXP in my case) with Boost,
Something like this? http://www.boost.org/doc/libs/1_46_1/doc/html/mpi/getting_started.html Maybe together with some more general information from this page? http://www.boost.org/doc/libs/1_46_1/more/getting_started/windows.html
and some sample code to use the parallel graph algorithm.
All sample code provided by Boost developers can be found in $BOOST_ROOT/libs/library-name/example, i.e. in this case $BOOST_ROOT/libs/mpi/example (where $BOOST_ROOT is the path to the Boost root directory). If this directory doesn't contain any examples of a parallel graph algorithm, and if a Google search for "MPI graph algorithm" does not yield the kind of result you need, I'm afraid no such sample code exists. HTH, Julian

If you are looking for an off-the-shelf kind of thing check out boostpro.com. The MPI library they provide is compatible with Microsoft HP Cluster Pack. Arpan On Tue, Mar 15, 2011 at 12:00 AM, Julian Gonggrijp <j.gonggrijp@gmail.com>wrote:
Cosimo Calabrese wrote:
I'm searching for a detailed procedure to install MPI (such OpenMPI) under Win32 (WinXP in my case) with Boost,
Something like this? http://www.boost.org/doc/libs/1_46_1/doc/html/mpi/getting_started.html
Maybe together with some more general information from this page? http://www.boost.org/doc/libs/1_46_1/more/getting_started/windows.html
and some sample code to use the parallel graph algorithm.
All sample code provided by Boost developers can be found in $BOOST_ROOT/libs/library-name/example, i.e. in this case $BOOST_ROOT/libs/mpi/example (where $BOOST_ROOT is the path to the Boost root directory). If this directory doesn't contain any examples of a parallel graph algorithm, and if a Google search for "MPI graph algorithm" does not yield the kind of result you need, I'm afraid no such sample code exists.
HTH, Julian _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Regards, Arpan ----------------------------------------------------------------------------------------------------------------- Reality is merely an illusion, albeit a very persistent one.

Thanks Arpan, I've tried to find this implementation, but I'm not be able to... where can I find it? Il 15/03/2011 18.48, Arpan Sen ha scritto:
If you are looking for an off-the-shelf kind of thing check out boostpro.com. The MPI library they provide is compatible with Microsoft HP Cluster Pack.

Hi Cosimo, http://www.boostpro.com/download/ <http://www.boostpro.com/download/> http://www.microsoft.com/downloads/en/details.aspx?familyid=12887DA1-9410-4A59-B903-693116BFD30E&displaylang=en <http://www.microsoft.com/downloads/en/details.aspx?familyid=12887DA1-9410-4A59-B903-693116BFD30E&displaylang=en>You need XP SP3 or greater. Arpan On Thu, Mar 17, 2011 at 11:43 PM, Cosimo Calabrese < cosimo.calabrese@tellus.it> wrote:
Thanks Arpan,
I've tried to find this implementation, but I'm not be able to... where can I find it?
Il 15/03/2011 18.48, Arpan Sen ha scritto:
If you are looking for an off-the-shelf kind of thing check out
boostpro.com. The MPI library they provide is compatible with Microsoft HP Cluster Pack.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Regards, Arpan ----------------------------------------------------------------------------------------------------------------- Reality is merely an illusion, albeit a very persistent one.

Thanks! I'm not able to recompile Open MPI on Win32, so I've downloaded and installed the Windows installer that I've found in http://www.open-mpi.org/software/ompi/v1.5; then I've configured the user-config.jam adding the line: using mpi ; So I've tried to build the boost with this command: bjam debug release -a --toolset=msvc-10.0 stage but it can't able to find the MPI install. The compiler message is: MPI auto-detection failed: unknown wrapper compiler C:/Programmi/OpenMPI_v1.5.2-win32/bin/mpic++.exe Please report this error to the Boost mailing list: http://www.boost.org You will need to manually configure MPI support. So I've tried to modify the user-config.jam in: using mpi : C:/Programmi/OpenMPI_v1.5.2-win32/bin/mpic++.exe ; But the error is the same. Can you help me? Thanks, Cosimo Calabrese. Il 14/03/2011 19.30, Julian Gonggrijp ha scritto:
Cosimo Calabrese wrote:
I'm searching for a detailed procedure to install MPI (such OpenMPI) under Win32 (WinXP in my case) with Boost,
Something like this? http://www.boost.org/doc/libs/1_46_1/doc/html/mpi/getting_started.html
Maybe together with some more general information from this page? http://www.boost.org/doc/libs/1_46_1/more/getting_started/windows.html
and some sample code to use the parallel graph algorithm.
All sample code provided by Boost developers can be found in $BOOST_ROOT/libs/library-name/example, i.e. in this case $BOOST_ROOT/libs/mpi/example (where $BOOST_ROOT is the path to the Boost root directory). If this directory doesn't contain any examples of a parallel graph algorithm, and if a Google search for "MPI graph algorithm" does not yield the kind of result you need, I'm afraid no such sample code exists.
HTH, Julian _______________________________________________ Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Cosimo Calabrese wrote:
Thanks! I'm not able to recompile Open MPI on Win32, so I've downloaded and installed the Windows installer that I've found in http://www.open-mpi.org/software/ompi/v1.5; then I've configured the user-config.jam adding the line:
using mpi ;
So I've tried to build the boost with this command:
bjam debug release -a --toolset=msvc-10.0 stage
but it can't able to find the MPI install. The compiler message is:
MPI auto-detection failed: unknown wrapper compiler C:/Programmi/OpenMPI_v1.5.2-win32/bin/mpic++.exe Please report this error to the Boost mailing list: http://www.boost.org You will need to manually configure MPI support.
So I've tried to modify the user-config.jam in:
using mpi : C:/Programmi/OpenMPI_v1.5.2-win32/bin/mpic++.exe ;
But the error is the same.
The Boost.MPI getting started page also metions these steps:
If your MPI implementation does not have a wrapper compiler, or the MPI auto-detection code does not work with your MPI's wrapper compiler, you can pass MPI-related options explicitly via the second parameter to the mpi module:
using mpi : : <find-shared-library>lammpio <find-shared-library>lammpi++ <find-shared-library>mpi <find-shared-library>lam <find-shared-library>dl ;
To see the results of MPI auto-detection, pass --debug-configuration on the bjam command line.
Did you try those? -Julian

Yes, I've tried the follow 2 config (separately): 1) using mpi : : <find-shared-library>mpic++ ; 2) using mpi : : <find-shared-library>lammpio <find-shared-library>lammpi++ <find-shared-library>mpi <find-shared-library>lam <find-shared-library>dl ; But they both fail, it seems not be able to find some Open MPI includes. This is a part of logging: compile-c-c++ bin.v2\libs\mpi\build\msvc-10.0\release\link-static\threading-multi\broadcast.obj broadcast.cpp .\boost/mpi/config.hpp(20) : fatal error C1083: Impossibile aprire il file inclusione 'mpi.h': No such file or directory call "C:\Programmi\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\mpi\build\msvc-10.0\release\link-static\threading-multi\broadcast.obj.rsp" ...failed compile-c-c++ bin.v2\libs\mpi\build\msvc-10.0\release\link-static\threading-multi\broadcast.obj... compile-c-c++ bin.v2\libs\mpi\build\msvc-10.0\release\link-static\threading-multi\communicator.obj communicator.cpp .\boost/mpi/config.hpp(20) : fatal error C1083: Impossibile aprire il file inclusione 'mpi.h': No such file or directory etc..... Is there a place where I must specify the Open MPI include path? Thanks, Cosimo Calabrese.
The Boost.MPI getting started page also metions these steps:
If your MPI implementation does not have a wrapper compiler, or the MPI auto-detection code does not work with your MPI's wrapper compiler, you can pass MPI-related options explicitly via the second parameter to the mpi module:
using mpi : :<find-shared-library>lammpio<find-shared-library>lammpi++ <find-shared-library>mpi<find-shared-library>lam <find-shared-library>dl ;
To see the results of MPI auto-detection, pass --debug-configuration on the bjam command line.
Did you try those?
-Julian _______________________________________________ Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Cosimo Calabrese wrote:
Yes, I've tried the follow 2 config (separately):
1) using mpi : : <find-shared-library>mpic++ ;
2) using mpi : : <find-shared-library>lammpio <find-shared-library>lammpi++ <find-shared-library>mpi <find-shared-library>lam <find-shared-library>dl ;
But they both fail, it seems not be able to find some Open MPI includes.
2) is taken directly from the example on the Boost.MPI website, right? But that's just an example, for the case when you're using LAM/MPI. It won't work in your case because you're using Open MPI. It will probably look more like this: using mpi : : <find-shared-library>openmpio <find-shared-library>openmpi++ <find-shared-library>mpi ; You'll have to consult the Open MPI documentation to find out what exactly to fill out there.
Is there a place where I must specify the Open MPI include path?
I'm not very familiar with MPI compiler wrappers (or with MPI in general, so if anyone more informed can help please do so), but if your MPI headers are not in your CPPPATH then yes, you should probably specify the Open MPI include path in your Jamfile. Like this: project : requirements <include>C:/wherever/you/put/openMPI ; You can find the entire Boost.Build documentation here: http://www.boost.org/boost-build2/doc/html/index.html HTH, Julian
participants (3)
-
Arpan Sen
-
Cosimo Calabrese
-
Julian Gonggrijp