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!
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
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
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
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.
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
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
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
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!