[转]Building MPICH2 on…

This post provides instructions on building MPICH2 on 64 bit Linux with Absoft Pro Fortran 11.5 and later.

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

DOWNLOADING THE REQUIRED PACKAGE

The MPICH2 package is available at this site http://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 use the source code package named mpich-3.0.2.tar.gz.

CREATING THE MPICH2 SOURCE TREE

Extract the MPICH2 source with the following command:

    tar -xzvf mpich-3.0.2.tar.gz

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

MAKING A TARGET BUILD DIRECTORY

It is possible to configure and build MPICH2 directly inside the source directory. However, creating a separate build directory makes reconfiguring or maintaining more than one build (for example 32 and 64 bit builds) easier. The instructions below assume that a separate build directory has been created in the directory containing   the MPICH2 source directory using this command:

      mkdir mpich2-64build

CONFIGURING, BUILDING AND INSTALLING 64 BIT MPICH2

Use following commands configure, build   and install 64 bit MPICH2 with Absoft   Pro Fortran 11.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 configure command.

    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, the installed MPICH2 bin directory should be added to your PATH variable.

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 the file named README located in the mpich-3.0.2   source directory.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值