[mpich-discuss] mpic++/mpicxx?
Jayesh Krishna
jayesh at mcs.anl.gov
Wed Aug 3 16:35:02 CDT 2011
Hi,
Looking at your email once again, it looks like you are building 32-bit libs. So remove the line specifying the address-model in your user-config.jam (remove the line "<address-model>64" that implies "build 64-bit libs").
-Jayesh
----- Original Message -----
From: "Jayesh Krishna" <jayesh at mcs.anl.gov>
To: "Geoff Hilton" <geoff.hilton at t-optlogic.com>
Cc: mpich-discuss at mcs.anl.gov
Sent: Wednesday, August 3, 2011 4:31:11 PM
Subject: Re: [mpich-discuss] mpic++/mpicxx?
Hi,
Follow the steps below to build Boost with MPICH2.
Assumptions
--------------
# MPICH2 is already installed in your system
# Visual Studio Compiler is installed in your system
Step 1
---------
Add the lines below to your "tools/build/v2/user-config.jam" (You can also refer to http://www.boost.org/doc/libs/1_47_0/doc/html/mpi/getting_started.html for details). Add the lines to the end of the file.
----------------------- userconfig.jam ---------------------------
...
# MPI Configuration
import path ;
local mpich2_path_win = "C:\\Program Files\\MPICH2" ;
local mpich2_path = [ path.make $(mpich2_path_win) ] ;
using mpi : : <include>$(mpich2_path)/include
<address-model>64
<library-path>$(mpich2_path)/lib
<find-static-library>cxx
<find-static-library>mpi
;
.mpirun = "\"$(mpich2_path)\\bin\\mpiexec.exe"\" ;
.mpirun_flags = -n ;
----------------------- userconfig.jam ---------------------------
Step 2
---------
Use bjam to make and install the MPI library. Make sure that you use a command similar to the one below to specify the type of the build (Since MPICH2 libs are MultiThreaded Static libraries you need to make sure that you build MT static boost libs too, as below).
C:\boost_1_47_0>bjam --prefix=c:\boost_1_47_0_install link=static threading=multi runtime-link=static --with-mpi install
Step 3
----------
Try a Boost MPI hello world program (http://www.boost.org/doc/libs/1_39_0/doc/html/mpi/tutorial.html).
Hope this helps.
Regards,
Jayesh
----- Original Message -----
From: "Geoff Hilton" <geoff.hilton at t-optlogic.com>
To: mpich-discuss at mcs.anl.gov
Cc: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Friday, July 29, 2011 2:28:31 PM
Subject: Re: [mpich-discuss] mpic++/mpicxx?
Hi Jayesh, would you? I'd really appreciate that! I just updated to
boost 1.47 (the latest). What exactly is the compiler wrapper/batch file
meant to accomplish anyway? Would using a version of mpic++/mpicxx
provided by a different MPICH2 implementation work equally well or is it
very implementation dependent?
Thank you!
-------- Original Message --------
Subject: Re: [mpich-discuss] mpic++/mpicxx?
Date: Fri, 29 Jul 2011 14:19:04 -0500 (CDT)
From: Jayesh Krishna <jayesh at mcs.anl.gov>
To: Geoff Hilton <geoff.hilton at t-optlogic.com>
CC: mpich-discuss at mcs.anl.gov
Hi,
Unfortunately I currently don't have the jam files or the batch file
that you need. Which version of boost are you using ? I can try
modifying the jam files for the same and provide you (in a couple of days).
-Jayesh
----- Original Message -----
From: "Geoff Hilton" <geoff.hilton at t-optlogic.com>
To: mpich-discuss at mcs.anl.gov
Cc: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Friday, July 29, 2011 11:05:21 AM
Subject: Re: [mpich-discuss] mpic++/mpicxx?
Hi Jayesh and thanks for your response, do you have a working copy of
said batch file and a list of changes that you made to the installer
(installed files?) and jam files that I could use? I'd really appreciate
any help I could get so that I can get up, running and back to coding asap.
Unrelatedly is this list available via gmane? If not, can it be? It'd
make browsing it infinitely easier.
Thank you!
On 29/07/2011 11:51 AM, Jayesh Krishna wrote:
> Hi,
> The MPI compiler wrapper scripts (mpicc, mpicxx etc) are currently not provided with MPICH2 on Windows. Try creating a batch script with Visual studio compiler so that you can use the batch script in place of the VS compiler. You should be able to use this script with Boost.
>
> (PS: The last time I tested Boost with MPICH2 on Windows I manually modified their installer/jam scripts)
> Regards,
> Jayesh
>
> ----- Original Message -----
> From: "Geoff Hilton"<geoff.hilton at t-optlogic.com>
> To: mpich-discuss at mcs.anl.gov
> Sent: Thursday, July 28, 2011 7:30:16 PM
> Subject: [mpich-discuss] mpic++/mpicxx?
>
> Hello,
>
> I'm new to distributed development and was thinking of using your
> implementation of the MPI standard in combination with the Boost C++
> Library. However after some reading I've come to understand that a
> compiler wrapper called mpic++ (mpicxx or otherwise) is required as well
> but I see no mention of it anywhere on the MPICH2 site (
> http://www.mcs.anl.gov/research/projects/mpich2 ), nor does it seem to
> have come prepackaged with the installer (mpich2-1.4-win-ia32.msi) I
> downloaded. Where might I find it exactly, and as a compiler wrapper,
> can I safely assume I'm meant to use it wherever I would ordinarily use
> my regular compiler (MSVC9 on Windows, GCC on Linux) when MPICH2 is
> involved? Is there anything in particular I should know or take note of
> with mpic++/mpicxx or MPICH2 in general?
>
> Thank you!
--
Geoff Hilton
Programmeur-analyste
T-OptLogic inc.
(418) 800-7370
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list