Home >Operation and Maintenance >CentOS >Detailed explanation of centos installation openmpi

Detailed explanation of centos installation openmpi

藏色散人
藏色散人forward
2021-02-09 17:15:033991browse

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

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

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

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)

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

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

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

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)

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete