[转]Building MPICH2 on…

来源:互联网 发布:网络导流是什么意思 编辑:程序博客网 时间:2024/05/21 06:46
This post provides instructions on building MPICH2 on 64 bitLinux with Absoft Pro Fortran 11.5 and later.

MPICH2 is a high-performance and widely portableimplementation of the Message Passing Interface (MPI) standard(both MPI-1 and MPI-2).

DOWNLOADING THE REQUIRED PACKAGE

The MPICH2 package is available at this sitehttp://www.mpich.org/downloads. At the time this post was updated,the current stable release for MPICH2 is  3.0.2.It was released on December 19, 2013. The instructions below usethe source code package named mpich-3.0.2.tar.gz.

CREATING THE MPICH2 SOURCE TREE

Extract the MPICH2 source with the following command:

   tar -xzvfmpich-3.0.2.tar.gz

This will create a directory named mpich-3.0.2 in the currentworking directory.

MAKING A TARGET BUILD DIRECTORY

It is possible to configure and build MPICH2 directly insidethe source directory. However, creating a separate build directorymakes reconfiguring or maintaining more than one build (for example32 and 64 bit builds) easier. The instructions below assume that aseparate build directory has been created in the directorycontaining  the MPICH2 source directory using thiscommand:

     mkdirmpich2-64build

CONFIGURING, BUILDING AND INSTALLING 64 BIT MPICH2

Use following commands configure, build  andinstall 64 bit MPICH2 with Absoft  Pro Fortran11.5 and later. These commands configure MPICH2 to install into/opt/mpich2-64. If you want to install to a different location,replace /opt/mpich2-64 in the --prefix= argument to the configurecommand.

   cd mpich2-64build

   ../mpich-3.0.2/configure--prefix=/opt/mpich2-64 F77=$ABSOFT/bin/af77 \
         FC=$ABSOFT/bin/af90 --with-pm=mpd

   make

   make install


USING MPICH2

In order insure that correct MPICH2 commands are invoked, theinstalled MPICH2 bin directory should be added to your PATHvariable.

For bash and sh users:

      export PATH=/opt/mpich2-64/bin:$PATH

For csh and tcsh users:

      setenv PATH /opt/mpich2-64/bin:$PATH

FURTHER INFORMATION

Further information on building MPICH2 can be found in thefile named README located in the mpich-3.0.2 source directory.

转自:http://absoft.absoft.com/newforums/index.php?topic=325.0
原创粉丝点击