SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
Installation of
OpenMPI
Parallel and Distributed
Programming
Granada's University LSI Departement
By:
Daniel Guerrero Martínez
Sergio Rodríguez Lumley
1
Index of content
Installation of OpenMPI.......................................................................................................................3
Quick install for Ubuntu (Debian, Linux/Unix)..............................................................................3
Manual install for any linux distribution.........................................................................................4
Some common errors.......................................................................................................................5
2
Installation of OpenMPI
Open MPI is an open source MPI-2 implementation that is developed and maintained by a
consortium of academic, research, and industry partners. Open MPI is therefore able to combine the
expertise, technologies, and resources from all across the High Performance Computing community
in order to build the best MPI library available.
You can download the last version from it's official page:
http://www.open-mpi.org/
Prerequisites:
• It is necessary to have installed a C/C++ compiler before installing OpenMPI. Installing this
on Ubuntu by package manager will automatically resolve this problem.
• It is necessary to have the “make” utility for manual installation.
Quick install for Ubuntu (Debian, Linux/Unix)
Here we will explain how to install it only for Ubuntu and similar OS. If you don't use it or you are
not sure, please consider the next step, the manual installation. Necessary packages are:
openmpi-bin: Parallel code executor program (mpirun).
Installs: openmpi-common libopenmpi1.3
openssh-client, openssh-server: Communicating programs (control and presentation routines)
between processes.
libopenmpi-dbg: Debug information generator for MPI.
libopenmpi-dev: Necessary to develop parallel programs based on MPI (mpicc command...).
Quick command:
sudo apt-get install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.3
libopenmpi-dbg libopenmpi-dev
Please note that if you are using Ubuntu, it will automatically install a C/C++ compiler, and it will
check for compatibilities and installed components.
3
Manual install for any linux distribution
Start downloading the last version of OpenMPI from it's official page:
http://www.open-mpi.org/software/ompi
Here you'll be able to downlad a version on tar.gz, tar.bz2 or on rpm. If your system supports rpm
this is the package you should download, if this is the case, you'll only have to install it without any
of the following steps (usually double-clicking).
If your system does not support rmp, follow the next steps:
1. Decompress the downloaded file (should be called something like openmpi-x.x.x.tar.xxx,
changing x.x.x for the version downloaded):
tar -xvf openmpi-*
2. Go into the new folder created from the decompress.
cd openmpi-*
3. Configure the installation file (making use of the superuser privileges of your system) and
start preparing a cup of coffee, because this task usually takes between 5 and 10
minutes.
It is necessary to add on the prefix the installation directory we want to use for OpenMPI.
The normal thing to do would be to select the next directory “/home/<user>/.openmpi”.
./configure --prefix="/home/$USER/.openmpi"
4. Now is the time for the hard work, install it. For it, we'll make use of the “make” tool. This
is a good moment for the coffee, this should take between 10 and 15 minutes, so let it
work.
make
sudo make install
5. All that is left to do is to include the path to our path environment the path
“installation_directory/bin” and to the library environment variable
“installation_directory/lib/”. If your system uses bash you'll have to use the command
export.
export PATH="$PATH:/home/$USER/.openmpi/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"
1. If you want the exportation to be effective for the next sessions and terminals, you'll
have to write the exports in the environment variable's file. By default it should be
“/home/<user>/.bashrc” for bash users.
echo export PATH="$PATH:/home/$USER/.openmpi/bin" >> /home/$USER/.bashrc
echo export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"
>> /home/$USER/.bashrc
4
If everything went Ok, when you run the command mpirun it'll show the “how to use” message, the
same for mpicc.
Some common errors
• “I'm on an Ubuntu modern system or compatible and when I run the quick command to
install it says it doesn't find openmpi-lib”
If you are sure your OS should have this package, the error is surely because you don't have your
repositories updated. A way of doing this is, if you are using “apt” (Advanced Packaging Tool),
running the next command:
sudo apt-get update
• “On step 3, configure gave me an error.”
If the error it gave is something like the next:
Figura 1. Error de compilador.
This is because you don't have installed any compiler. It's necessary to install all the compilers we
want to use before installing OpenMPI. To use it with C and C++, we strongly recommend GNU
gcc/g++ compiler version 4.4 or superior.
• “When I run the command MPIRUN or MPICC an error tells me that no file was found”
Please make sure the environmental variables configuration (Step 5 on manual installation). In case
you made tha automatic installation, we recommend to restart the computer, if this doesn't work,
you can always do step 5 manually. By default the paths are “/usr/include/openmpi/” for PATH and
“/usr/lib/openmpi/lib” for LD_LIBRARY_PATH).
5

Más contenido relacionado

Destacado

Intro to OpenMP
Intro to OpenMPIntro to OpenMP
Intro to OpenMPjbp4444
 
Intel® MPI Library e OpenMP* - Intel Software Conference 2013
Intel® MPI Library e OpenMP* - Intel Software Conference 2013Intel® MPI Library e OpenMP* - Intel Software Conference 2013
Intel® MPI Library e OpenMP* - Intel Software Conference 2013Intel Software Brasil
 
MPI Presentation
MPI PresentationMPI Presentation
MPI PresentationTayfun Sen
 
LAC2013 Day 04 - Air Resistance Part I
LAC2013 Day 04 - Air Resistance Part ILAC2013 Day 04 - Air Resistance Part I
LAC2013 Day 04 - Air Resistance Part IA Jorge Garcia
 
5HBC2012 1104 LaGrange Error Term
5HBC2012 1104 LaGrange Error Term5HBC2012 1104 LaGrange Error Term
5HBC2012 1104 LaGrange Error TermA Jorge Garcia
 
Lab06: Iterations Java Boot Camp!
Lab06: Iterations Java Boot Camp!Lab06: Iterations Java Boot Camp!
Lab06: Iterations Java Boot Camp!A Jorge Garcia
 
5HBC2012 11-02 Power Series Short Cuts!
5HBC2012 11-02 Power Series Short Cuts!5HBC2012 11-02 Power Series Short Cuts!
5HBC2012 11-02 Power Series Short Cuts!A Jorge Garcia
 
Ncshs student application form
Ncshs student application formNcshs student application form
Ncshs student application formA Jorge Garcia
 
5HBC2012 904 Variable Separable DiffEqus!
5HBC2012 904 Variable Separable DiffEqus!5HBC2012 904 Variable Separable DiffEqus!
5HBC2012 904 Variable Separable DiffEqus!A Jorge Garcia
 
5H2012 UNIT11 Power Series!
5H2012 UNIT11 Power Series!5H2012 UNIT11 Power Series!
5H2012 UNIT11 Power Series!A Jorge Garcia
 
LAC2013 Day 02 Hooke's Law Part I
LAC2013 Day 02 Hooke's Law Part ILAC2013 Day 02 Hooke's Law Part I
LAC2013 Day 02 Hooke's Law Part IA Jorge Garcia
 

Destacado (20)

OpenMP
OpenMPOpenMP
OpenMP
 
Intro to OpenMP
Intro to OpenMPIntro to OpenMP
Intro to OpenMP
 
Intel® MPI Library e OpenMP* - Intel Software Conference 2013
Intel® MPI Library e OpenMP* - Intel Software Conference 2013Intel® MPI Library e OpenMP* - Intel Software Conference 2013
Intel® MPI Library e OpenMP* - Intel Software Conference 2013
 
MPI Presentation
MPI PresentationMPI Presentation
MPI Presentation
 
LAC2013 Day 04 - Air Resistance Part I
LAC2013 Day 04 - Air Resistance Part ILAC2013 Day 04 - Air Resistance Part I
LAC2013 Day 04 - Air Resistance Part I
 
5HBC2012 1104 LaGrange Error Term
5HBC2012 1104 LaGrange Error Term5HBC2012 1104 LaGrange Error Term
5HBC2012 1104 LaGrange Error Term
 
Lab06: Iterations Java Boot Camp!
Lab06: Iterations Java Boot Camp!Lab06: Iterations Java Boot Camp!
Lab06: Iterations Java Boot Camp!
 
5HBC2012 11-02 Power Series Short Cuts!
5HBC2012 11-02 Power Series Short Cuts!5HBC2012 11-02 Power Series Short Cuts!
5HBC2012 11-02 Power Series Short Cuts!
 
CHAP09.4RS
CHAP09.4RSCHAP09.4RS
CHAP09.4RS
 
Ncshs student application form
Ncshs student application formNcshs student application form
Ncshs student application form
 
Life aftercalcday3
Life aftercalcday3Life aftercalcday3
Life aftercalcday3
 
5HBC2012 904 Variable Separable DiffEqus!
5HBC2012 904 Variable Separable DiffEqus!5HBC2012 904 Variable Separable DiffEqus!
5HBC2012 904 Variable Separable DiffEqus!
 
Life aftercalcday8
Life aftercalcday8Life aftercalcday8
Life aftercalcday8
 
5H2012 UNIT11 Power Series!
5H2012 UNIT11 Power Series!5H2012 UNIT11 Power Series!
5H2012 UNIT11 Power Series!
 
Life aftercalcday1
Life aftercalcday1Life aftercalcday1
Life aftercalcday1
 
UNIT05.bcs
UNIT05.bcsUNIT05.bcs
UNIT05.bcs
 
Life aftercalcday5
Life aftercalcday5Life aftercalcday5
Life aftercalcday5
 
UNIT05.BCS
UNIT05.BCSUNIT05.BCS
UNIT05.BCS
 
LAC2013 Day 02 Hooke's Law Part I
LAC2013 Day 02 Hooke's Law Part ILAC2013 Day 02 Hooke's Law Part I
LAC2013 Day 02 Hooke's Law Part I
 
Life aftercalcday4
Life aftercalcday4Life aftercalcday4
Life aftercalcday4
 

Similar a HowTo Install openMPI on Ubuntu

manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48tutorialsruby
 
manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48tutorialsruby
 
Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux TroubleshootingKeith Wright
 
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwarePart 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwareJoachim Jacob
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linuxnejadmand
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyopenQRM Enterprise GmbH
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guidevjvarenya
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windowstutorialsruby
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windowstutorialsruby
 
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xNader Karimi
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012Chukwuma Onyeije, MD, FACOG
 
Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Jérôme Petazzoni
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01decenttr
 

Similar a HowTo Install openMPI on Ubuntu (20)

manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48
 
manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48manual-doc_inst_macosx-20-05-2004_00-24-48
manual-doc_inst_macosx-20-05-2004_00-24-48
 
Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux Troubleshooting
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwarePart 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian Wheezy
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
linux
linuxlinux
linux
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
 
Linux
LinuxLinux
Linux
 
Wissbi osdc pdf
Wissbi osdc pdfWissbi osdc pdf
Wissbi osdc pdf
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windows
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windows
 
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.x
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012
 
Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
 

Más de A Jorge Garcia

MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAY
MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAYMAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAY
MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAYA Jorge Garcia
 
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAY
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAYMAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAY
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAYA Jorge Garcia
 
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAY
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAYMAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAY
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAYA Jorge Garcia
 
MAT122 DAY308 Lesson 26 of 45
MAT122 DAY308 Lesson 26 of 45MAT122 DAY308 Lesson 26 of 45
MAT122 DAY308 Lesson 26 of 45A Jorge Garcia
 
MAT122 DAY307 Lesson 25 of 45
MAT122 DAY307 Lesson 25 of 45MAT122 DAY307 Lesson 25 of 45
MAT122 DAY307 Lesson 25 of 45A Jorge Garcia
 
MAT122 DAY306 Lesson 24 of 45
MAT122 DAY306 Lesson 24 of 45MAT122 DAY306 Lesson 24 of 45
MAT122 DAY306 Lesson 24 of 45A Jorge Garcia
 
MAT122 DAY305 Lesson 23 of 45
MAT122 DAY305 Lesson 23 of 45MAT122 DAY305 Lesson 23 of 45
MAT122 DAY305 Lesson 23 of 45A Jorge Garcia
 
MAT122 DAY304 Lesson 22 of 45
MAT122 DAY304 Lesson 22 of 45MAT122 DAY304 Lesson 22 of 45
MAT122 DAY304 Lesson 22 of 45A Jorge Garcia
 
MAT122 DAY303 Lesson 21 of 45
MAT122 DAY303 Lesson 21 of 45MAT122 DAY303 Lesson 21 of 45
MAT122 DAY303 Lesson 21 of 45A Jorge Garcia
 
MAT122 DAY302 Lesson 20 of 45
MAT122 DAY302 Lesson 20 of 45MAT122 DAY302 Lesson 20 of 45
MAT122 DAY302 Lesson 20 of 45A Jorge Garcia
 
MAT122 DAY301 Lesson 19 of 45
MAT122 DAY301 Lesson 19 of 45MAT122 DAY301 Lesson 19 of 45
MAT122 DAY301 Lesson 19 of 45A Jorge Garcia
 

Más de A Jorge Garcia (20)

LIMACON 2023 Brochure
LIMACON 2023 BrochureLIMACON 2023 Brochure
LIMACON 2023 Brochure
 
2022-RESUME-NEW
2022-RESUME-NEW2022-RESUME-NEW
2022-RESUME-NEW
 
MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAY
MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAYMAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAY
MAT122 DAY508 MEETING 44 of 45 2021.1217 FRIDAY
 
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAY
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAYMAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAY
MAT122 DAY507 MEETING 43 of 45 2021.1216 THURSDAY
 
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAY
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAYMAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAY
MAT122 DAY506 MEETING 42 of 45 2021.1215 WEDNESDAY
 
MAT122 DAY308 Lesson 26 of 45
MAT122 DAY308 Lesson 26 of 45MAT122 DAY308 Lesson 26 of 45
MAT122 DAY308 Lesson 26 of 45
 
MAT122 DAY307 Lesson 25 of 45
MAT122 DAY307 Lesson 25 of 45MAT122 DAY307 Lesson 25 of 45
MAT122 DAY307 Lesson 25 of 45
 
MAT122 DAY306 Lesson 24 of 45
MAT122 DAY306 Lesson 24 of 45MAT122 DAY306 Lesson 24 of 45
MAT122 DAY306 Lesson 24 of 45
 
MAT122 DAY305 Lesson 23 of 45
MAT122 DAY305 Lesson 23 of 45MAT122 DAY305 Lesson 23 of 45
MAT122 DAY305 Lesson 23 of 45
 
MAT122 DAY304 Lesson 22 of 45
MAT122 DAY304 Lesson 22 of 45MAT122 DAY304 Lesson 22 of 45
MAT122 DAY304 Lesson 22 of 45
 
MAT122 DAY303 Lesson 21 of 45
MAT122 DAY303 Lesson 21 of 45MAT122 DAY303 Lesson 21 of 45
MAT122 DAY303 Lesson 21 of 45
 
MAT122 DAY302 Lesson 20 of 45
MAT122 DAY302 Lesson 20 of 45MAT122 DAY302 Lesson 20 of 45
MAT122 DAY302 Lesson 20 of 45
 
MAT122 DAY301 Lesson 19 of 45
MAT122 DAY301 Lesson 19 of 45MAT122 DAY301 Lesson 19 of 45
MAT122 DAY301 Lesson 19 of 45
 
MAT122 DAY205
MAT122 DAY205MAT122 DAY205
MAT122 DAY205
 
MAT122 DAY204
MAT122 DAY204MAT122 DAY204
MAT122 DAY204
 
MAT122 DAY203
MAT122 DAY203MAT122 DAY203
MAT122 DAY203
 
MAT122 DAY202
MAT122 DAY202MAT122 DAY202
MAT122 DAY202
 
MAT122 DAY201
MAT122 DAY201MAT122 DAY201
MAT122 DAY201
 
MAT122 DAY06
MAT122 DAY06MAT122 DAY06
MAT122 DAY06
 
MAT122 DAY05
MAT122 DAY05MAT122 DAY05
MAT122 DAY05
 

Último

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 

Último (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

HowTo Install openMPI on Ubuntu

  • 1. Installation of OpenMPI Parallel and Distributed Programming Granada's University LSI Departement By: Daniel Guerrero Martínez Sergio Rodríguez Lumley 1
  • 2. Index of content Installation of OpenMPI.......................................................................................................................3 Quick install for Ubuntu (Debian, Linux/Unix)..............................................................................3 Manual install for any linux distribution.........................................................................................4 Some common errors.......................................................................................................................5 2
  • 3. Installation of OpenMPI Open MPI is an open source MPI-2 implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise, technologies, and resources from all across the High Performance Computing community in order to build the best MPI library available. You can download the last version from it's official page: http://www.open-mpi.org/ Prerequisites: • It is necessary to have installed a C/C++ compiler before installing OpenMPI. Installing this on Ubuntu by package manager will automatically resolve this problem. • It is necessary to have the “make” utility for manual installation. Quick install for Ubuntu (Debian, Linux/Unix) Here we will explain how to install it only for Ubuntu and similar OS. If you don't use it or you are not sure, please consider the next step, the manual installation. Necessary packages are: openmpi-bin: Parallel code executor program (mpirun). Installs: openmpi-common libopenmpi1.3 openssh-client, openssh-server: Communicating programs (control and presentation routines) between processes. libopenmpi-dbg: Debug information generator for MPI. libopenmpi-dev: Necessary to develop parallel programs based on MPI (mpicc command...). Quick command: sudo apt-get install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.3 libopenmpi-dbg libopenmpi-dev Please note that if you are using Ubuntu, it will automatically install a C/C++ compiler, and it will check for compatibilities and installed components. 3
  • 4. Manual install for any linux distribution Start downloading the last version of OpenMPI from it's official page: http://www.open-mpi.org/software/ompi Here you'll be able to downlad a version on tar.gz, tar.bz2 or on rpm. If your system supports rpm this is the package you should download, if this is the case, you'll only have to install it without any of the following steps (usually double-clicking). If your system does not support rmp, follow the next steps: 1. Decompress the downloaded file (should be called something like openmpi-x.x.x.tar.xxx, changing x.x.x for the version downloaded): tar -xvf openmpi-* 2. Go into the new folder created from the decompress. cd openmpi-* 3. Configure the installation file (making use of the superuser privileges of your system) and start preparing a cup of coffee, because this task usually takes between 5 and 10 minutes. It is necessary to add on the prefix the installation directory we want to use for OpenMPI. The normal thing to do would be to select the next directory “/home/<user>/.openmpi”. ./configure --prefix="/home/$USER/.openmpi" 4. Now is the time for the hard work, install it. For it, we'll make use of the “make” tool. This is a good moment for the coffee, this should take between 10 and 15 minutes, so let it work. make sudo make install 5. All that is left to do is to include the path to our path environment the path “installation_directory/bin” and to the library environment variable “installation_directory/lib/”. If your system uses bash you'll have to use the command export. export PATH="$PATH:/home/$USER/.openmpi/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/" 1. If you want the exportation to be effective for the next sessions and terminals, you'll have to write the exports in the environment variable's file. By default it should be “/home/<user>/.bashrc” for bash users. echo export PATH="$PATH:/home/$USER/.openmpi/bin" >> /home/$USER/.bashrc echo export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/" >> /home/$USER/.bashrc 4
  • 5. If everything went Ok, when you run the command mpirun it'll show the “how to use” message, the same for mpicc. Some common errors • “I'm on an Ubuntu modern system or compatible and when I run the quick command to install it says it doesn't find openmpi-lib” If you are sure your OS should have this package, the error is surely because you don't have your repositories updated. A way of doing this is, if you are using “apt” (Advanced Packaging Tool), running the next command: sudo apt-get update • “On step 3, configure gave me an error.” If the error it gave is something like the next: Figura 1. Error de compilador. This is because you don't have installed any compiler. It's necessary to install all the compilers we want to use before installing OpenMPI. To use it with C and C++, we strongly recommend GNU gcc/g++ compiler version 4.4 or superior. • “When I run the command MPIRUN or MPICC an error tells me that no file was found” Please make sure the environmental variables configuration (Step 5 on manual installation). In case you made tha automatic installation, we recommend to restart the computer, if this doesn't work, you can always do step 5 manually. By default the paths are “/usr/include/openmpi/” for PATH and “/usr/lib/openmpi/lib” for LD_LIBRARY_PATH). 5