Detailed explanation of centos installation openmpi

藏色散人
Release: 2021-02-09 17:15:03
forward
3941 people have browsed it

The tutorial column of centos below will give you a detailed explanation of centos installation openmpi. I hope it will be helpful to friends in need!

Detailed explanation of centos installation openmpi

1 Download the openmpi source code

provided through the official website Download address: https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz, download version 3.1 of openmpi, execute the following command on the command line, it will Download the openmpi-3.1.0.tar.gz file to the current directory:

$ wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz
Copy after login
Copy after login

2 Unzip the openmpi source code

Enter the directory where the openmpi-3.1.0.tar.gz file is located and execute the following command Unzip the source code:

$ tar -zxvf openmpi-3.1.0.tar.gz
Copy after login

3 Install openmpi

After decompression, follow the standard installation steps of Linux software: ./configure && make && make install, install openmpi, steps As follows:

$ cd openmpi-3.1.0/
$ ./configure
$ make && make install
Copy after login
Copy after login

4 Verify the installation

After the installation is completed, enter the examples directory under the openmpi-3.1.0 directory, execute the make command to compile the example program, and verify whether openmpi is successfully installed by running the example program , as shown below:

$ cd examples/
$ make
$ ./hello_c
Hello, world, I am 0 of 1, (Open MPI v3.1.0, package: Open MPI root@ssli_centos7 Distribution, ident: 3.1.0, repo rev: v3.1.0, May 07, 2018, 112)
Copy after login
Copy after login

The sample program runs correctly, indicating that the installation is successful.

1 Download the openmpi source code

Download address provided through the official website: https://download .open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz, download version 3.1 of openmpi, and execute the following command on the command line, openmpi-3.1.0.tar. Download the gz file to the current directory:

$ wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz
Copy after login
Copy after login

2 Decompress the openmpi source code

Enter the directory where the openmpi-3.1.0.tar.gz file is located, and execute the following command to decompress the source code:

$ tar -zxvf openmpi-3.1.0.tar.gz
Copy after login

3 Install openmpi

After decompression, follow the standard installation steps of Linux software: ./configure && make && make install, install openmpi, the steps are as follows:

$ cd openmpi-3.1.0/
$ ./configure
$ make && make install
Copy after login
Copy after login

4 Verify the installation

After the installation is completed, enter the examples directory under the openmpi-3.1.0 directory, execute the make command to compile the example program, and verify whether openmpi is successfully installed by running the example program, as shown below:

$ cd examples/
$ make
$ ./hello_c
Hello, world, I am 0 of 1, (Open MPI v3.1.0, package: Open MPI root@ssli_centos7 Distribution, ident: 3.1.0, repo rev: v3.1.0, May 07, 2018, 112)
Copy after login
Copy after login

The sample program runs correctly, indicating that the installation is successful.

The above is the detailed content of Detailed explanation of centos installation openmpi. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template