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