Complete MPICH2 configuration manual under Ubuntu11.10

Source: Internet
Author: User
Note: This article is based on my own practices after reading a lot of articles. It will describe the articles I have read. If there are any omissions, please forgive me. I am new to Ubuntu and MPI, so it is inevitable that there are errors and deficiencies, here for reference only! Here I just use two machines as a reference example. One is equipped with Ubuntu11.10, and the other is installed with the same version of Ubuntu11.10 in the Virtual Machine. Here I am just doing a test, it may be migrated to the cluster later. The MPICH version used is the mpich2-1

Note: This article is based on my own practices after reading a lot of articles. It will describe the articles I have read. If there are any omissions, please forgive me. I am new to Ubuntu and MPI, so it is inevitable that there are errors and deficiencies, here for reference only!

Here I just use two machines as a reference example. One machine is installed with Ubuntu 11.10, and the other is installed with the same version of Ubuntu 11.10 on a virtual machine. Here I am just doing a test, it may be migrated to the cluster later. The MPICH version used is the mpich2-1.4.1p1. Not to mention nonsense. Start now!

The configuration of MPI is divided into several steps, see: Open the link http://www.linuxidc.com/Linux/2011-12/50236.htm, here I briefly explain:

  1. Preparations before installation
  2. Install MPICH
  3. Set Environment Variables
  4. Add configuration file
  5. Configure SSH
  6. Test

1. Preparations before installation

First of all, you must install the GCC and G ++ compilers. The apt-get command is OK.


2. Install MPICH

2.1 First decompress the downloaded file. The downloaded file is in the "Download" directory of the current user directory. I will decompress it directly to the current directory:

  1. Tar xvfz mpich2-1.4.1p1.tar.gz
Or directly go to the directory where the file is located, right-click it, and select "decompress here.


2.2 Standard configure, make, make install steps. Here I install the official documentation configuration, you can view the decompressed README Documentation Reference:

Because it is bash, select the following command, prefix indicates the installation path, USERNAME is the user name of the current user, because I don't need fortran here, So add the parameter (-- disable-f77 and -- disable-fc ), before that, you must create a path to install MPICH, that is:

  1. Mkdir mpich2-install
The following is configure:
  1. ./Configure -- prefix =/home/ Mpich2-install -- disable-f77 -- disable-fc 2> & 1 | tee c.txt

In addition, during the previous installation process, I found that if fortran is not prohibited, the installation may fail, resulting in incomplete installation of MPICH2 and errors. Therefore, we recommend that you choose not to use it here.

Next, make:

  1. Make 2> & 1 | tee m.txt
Here is make install:
  1. Make install 2> & 1 | tee mi.txt
After a long wait, the following file is finally generated in the mpich2-install:


So far, the MPICH2 installation is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.