Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A detailed tutorial for installing the messaging interface Open MPI library on Ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the detailed tutorial of installing the messaging interface Open MPI library on Ubuntu". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the detailed tutorial of installing the Open MPI library of the messaging interface on Ubuntu.

OpenMPI is a high-performance messaging library, originally as a converged technology and resource from several other projects (FT- MPI, LA-MPI, LAM/MPI, and PACX-MPI), it is an open source implementation of the MPI-2 standard, developed and maintained by a number of scientific institutions and enterprises. As a result, OpenMPI can get expertise, industrial technology, and resource support from the high-performance community to create the best MPI libraries. OpenMPI provides a lot of convenience to system and software vendors, program developers and researchers. Easy to use and run itself on a variety of operating systems, network interconnections, and batch / scheduling systems.

Open MPI is not a simple combination of LAM/MPI, LA-MPI and FT-MPI, but a new MPI implementation, which fully implements MPI-1.2 and MPI-2 protocols, and fully supports concurrent and multithreaded applications (that is, MPI_THREAD_MULTIPLE).

In order to effectively support a wide range of parallel machines, high-performance drivers have been developed, including TCP/IP, shared memory, Myrinet, Quadrics, and Infiniband. More machine support may be increased based on user, market and research needs. For network transmission errors, Open MPI provides an optional feature to detect data integrity. By using packet segmentation and splitting into multiple network designs, Open MPI can not only achieve the maximum available bandwidth, but also dynamically handle the data loss of network devices when nodes use multiple network devices.

Open MPI's runtime environment provides basic services for launching and managing parallel applications.

Ubuntu install OpenMPI

1. Download OpenMPI

Download the latest version of the installation package, such as openmpi-1.8.4.tar.gz, on the official website (http://www.open-mpi.org/software/)

two。 Decompress and configure

The code is as follows:

Tar-zxvf openmpi-1.8.4.tar.gz

Cd 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, for example, under the user directory.

3. Build and install

The code is as follows:

Make

Sudo make install

You can add the parameter-j8 after make to indicate that it is compiled with 8 cores.

4. Add environment variabl

Add the following lines to the .bashrc file

The code is as follows:

Export PATH= "$PATH:/usr/local/openmpi/bin"

Export LD_LIBRARY_PATH= "$LD_LIBRARY_PATH:/usr/local/openmpi/lib/"

After saving, execute

The code is as follows:

Sudo ldconfig

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

5. Test whether the installation is successful

The code is as follows:

Mpirun

Other

Open MPI is implemented in a simple C language object-oriented system, using a retain/release memory management model based on single inheritance and reference counting. An object consists of a structure and a single instantiated class identifier. The first element of the structure is a pointer that specifies the parent structure.

Macro instructions can have an impact on similar semantics of C++ (such as new, construct, destruct, delete). Because of the rich experience of C++ project and some platform compilation problems, the object-oriented method is used in the development of Open MPI instead of using C++ directly.

Once constructed, the object reference count is set to 1. When the object retain, the count increases, when the object release, the count decreases. When the count reaches 0, the object's destructor is run and memory is freed.

At this point, I believe you have a deeper understanding of the "detailed tutorial on installing the messaging interface Open MPI library on Ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report