SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Petronas drilling operations guideline
Petronas drilling operations guidelinePetronas drilling operations guideline
Petronas drilling operations guidelineEaswaran Kanason
 
Coal Sccl
Coal ScclCoal Sccl
Coal ScclVR M
 
Cours d'exploitation des mines à ciel ouvert
Cours d'exploitation des mines à ciel ouvertCours d'exploitation des mines à ciel ouvert
Cours d'exploitation des mines à ciel ouvertJeremie ilunga
 
Les méthodes de forage
Les méthodes de forageLes méthodes de forage
Les méthodes de forageLaetitia Yte
 
Drilling fluid dilution
Drilling fluid  dilution  Drilling fluid  dilution
Drilling fluid dilution SARWAR SALAM
 
Presentation 8 cutting sample examination
Presentation 8 cutting sample examinationPresentation 8 cutting sample examination
Presentation 8 cutting sample examinationAli Trichelli
 
GUIDE DU PÉTROLIER : le contenu // MEDARD EKRA
GUIDE DU PÉTROLIER : le contenu  // MEDARD EKRAGUIDE DU PÉTROLIER : le contenu  // MEDARD EKRA
GUIDE DU PÉTROLIER : le contenu // MEDARD EKRAKouame Medard Ekra
 
Rapport sitep hamza yahia pdf
Rapport  sitep hamza yahia pdfRapport  sitep hamza yahia pdf
Rapport sitep hamza yahia pdfwilliamdos1
 
Cuttings descriptions-clastic
Cuttings descriptions-clasticCuttings descriptions-clastic
Cuttings descriptions-clasticShahnawaz Mustafa
 
Washability Potential of Coal.pptx
Washability Potential of Coal.pptxWashability Potential of Coal.pptx
Washability Potential of Coal.pptxJaiPrakash53605
 
Review of scheduling algorithms in Open Pit Mining
Review of scheduling algorithms in Open Pit MiningReview of scheduling algorithms in Open Pit Mining
Review of scheduling algorithms in Open Pit MiningJose Gonzales, MBA
 
Mine scheduling process
Mine scheduling processMine scheduling process
Mine scheduling processVR M
 
rig drilling_equipment
 rig drilling_equipment rig drilling_equipment
rig drilling_equipmentamrhaggag
 
Drilling Engineering - Drilling Economics
Drilling Engineering - Drilling EconomicsDrilling Engineering - Drilling Economics
Drilling Engineering - Drilling EconomicsJames Craig
 
Porosity Permeability Relationship in carbonate rock ppt
Porosity Permeability Relationship in carbonate rock pptPorosity Permeability Relationship in carbonate rock ppt
Porosity Permeability Relationship in carbonate rock pptAmar Gaikwad
 

Was ist angesagt? (20)

Elments de-mcanique-des-sols
Elments de-mcanique-des-solsElments de-mcanique-des-sols
Elments de-mcanique-des-sols
 
Secondary cementing
Secondary cementingSecondary cementing
Secondary cementing
 
Petronas drilling operations guideline
Petronas drilling operations guidelinePetronas drilling operations guideline
Petronas drilling operations guideline
 
Coal Sccl
Coal ScclCoal Sccl
Coal Sccl
 
Cours d'exploitation des mines à ciel ouvert
Cours d'exploitation des mines à ciel ouvertCours d'exploitation des mines à ciel ouvert
Cours d'exploitation des mines à ciel ouvert
 
Les méthodes de forage
Les méthodes de forageLes méthodes de forage
Les méthodes de forage
 
Drilling fluid dilution
Drilling fluid  dilution  Drilling fluid  dilution
Drilling fluid dilution
 
Basics of drilling 1
Basics of drilling 1Basics of drilling 1
Basics of drilling 1
 
Presentation 8 cutting sample examination
Presentation 8 cutting sample examinationPresentation 8 cutting sample examination
Presentation 8 cutting sample examination
 
GUIDE DU PÉTROLIER : le contenu // MEDARD EKRA
GUIDE DU PÉTROLIER : le contenu  // MEDARD EKRAGUIDE DU PÉTROLIER : le contenu  // MEDARD EKRA
GUIDE DU PÉTROLIER : le contenu // MEDARD EKRA
 
Rapport sitep hamza yahia pdf
Rapport  sitep hamza yahia pdfRapport  sitep hamza yahia pdf
Rapport sitep hamza yahia pdf
 
Cuttings descriptions-clastic
Cuttings descriptions-clasticCuttings descriptions-clastic
Cuttings descriptions-clastic
 
Washability Potential of Coal.pptx
Washability Potential of Coal.pptxWashability Potential of Coal.pptx
Washability Potential of Coal.pptx
 
Review of scheduling algorithms in Open Pit Mining
Review of scheduling algorithms in Open Pit MiningReview of scheduling algorithms in Open Pit Mining
Review of scheduling algorithms in Open Pit Mining
 
74289607 solids-surpac
74289607 solids-surpac74289607 solids-surpac
74289607 solids-surpac
 
Mine scheduling process
Mine scheduling processMine scheduling process
Mine scheduling process
 
Motor operations manual
Motor operations manualMotor operations manual
Motor operations manual
 
rig drilling_equipment
 rig drilling_equipment rig drilling_equipment
rig drilling_equipment
 
Drilling Engineering - Drilling Economics
Drilling Engineering - Drilling EconomicsDrilling Engineering - Drilling Economics
Drilling Engineering - Drilling Economics
 
Porosity Permeability Relationship in carbonate rock ppt
Porosity Permeability Relationship in carbonate rock pptPorosity Permeability Relationship in carbonate rock ppt
Porosity Permeability Relationship in carbonate rock ppt
 

Andere mochten auch

Cloud Services On UI and Ideas for Federated Cloud on idREN
Cloud Services On UI and Ideas for Federated Cloud on idRENCloud Services On UI and Ideas for Federated Cloud on idREN
Cloud Services On UI and Ideas for Federated Cloud on idRENTonny Adhi Sabastian
 
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
 

Andere mochten auch (20)

Cloud Services On UI and Ideas for Federated Cloud on idREN
Cloud Services On UI and Ideas for Federated Cloud on idRENCloud Services On UI and Ideas for Federated Cloud on idREN
Cloud Services On UI and Ideas for Federated Cloud on idREN
 
presentation
presentationpresentation
presentation
 
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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Kürzlich hochgeladen (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

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