Install OpenMPI on Ubuntu

Source: Internet
Author: User
Briefly describe how to install OpenMPI In Ubuntu. 1. download the latest OpenMPI installation package on the official website, such as: openmpi-1.8.4.tar.gz2.decompress and configure tar-zxvfopenmpi-1.8.4.tar.gz cdopenmpi-1.8.4./configure -- prefix = "/usr/local/openmpi" Note

Briefly describe how to install OpenMPI In Ubuntu.

1. Download OpenMPI

Download the latest version of the installation package on the official website, such as: openmpi-1.8.4.tar.gz

2. decompress and configure

Tar-zxvf openmpi-1.8.4.tar.gzcd openmpi-1.8.4./configure -- prefix = "/usr/local/openmpi"

Note that the last line is to install it in the/usr/local/openmpi Directory, which can be specified as another directory, such as the user directory.

3. Build and install

Makesudo make install

You can add the parameter-j8 after make to compile with 8 cores.

4. Add Environment Variables

Add the following lines to the. bashrc file:

Export PATH = "$ PATH:/usr/local/openmpi/bin" export LD_LIBRARY_PATH = "$ LD_LIBRARY_PATH:/usr/local/openmpi/lib /"

After saving, run

Sudo ldconfig

Open a new terminal to make the environment variable take effect.

5. test whether the installation is successful.

Mpirun

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-04/116448.htm

Related Article

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.