Questions tagged [mpi]

MPI is the Message Passing Interface, a library for distributed memory parallel programming and the de facto standard method for using distributed memory clusters for high-performance technical computing. Questions about using MPI for parallel programming go under this tag; questions on, eg, installation problems with MPI implementations are best tagged with the appropriate implementation-specific tag, eg MPICH or OpenMPI.

MPI is the Message Passing Interface, a library for distributed memory parallel programming and the de facto standard method for using distributed memory clusters for high-performance technical computing. Questions about using MPI for parallel programming go under this tag; questions on, eg, installation problems with MPI implementations are best tagged with the appropriate implementation-specific tag, e.g. MPICH or OpenMPI.

The official documents for MPI can be found at the webpages of the MPI forum; a useful overview is given on the Wikipedia page for MPI. The current version of the MPI standard is 3.0; the Forum is currently working on versions 3.1, which will have smaller updates and errata fixes, and 4.0, which will have significant additions and enhancements.

Open source MPI Libraries that implement the current standard include

Versions for most common platforms can be downloaded from the links above. Platform specific implementations are also available from various vendors.

A number of excellent tutorials for learning the basics of MPI programming can be found online, typically at the websites of supercomputing centres; these include (in no particular order):

Definitive Book Guide

  1. An Introduction to Parallel Programming - Peter Pacheco.
  2. Parallel Programming in C with MPI and OpenMP - Michael J. Quinn
  3. MPI: The Complete Reference (Volume 2) - William Gropp, Steven Huss-Lederman, Andrew Lumsdaine, Ewing L. Lusk, Bill Nitzberg, William Saphir, Marc Snir
  4. Using MPI: Portable Parallel Programming with the Message-Passing Interface - William Gropp, Ewing Lusk, Anthony Skjellum
74 questions
14
votes
1 answer

MPICH installation

I searching on internet how to download the MPICH in my laptop, and something is going wrong... I don't know what is happening. I am using ubuntu 18.04. Someone know any good installation video, or doc to use and download it? I am trying to do the…
12
votes
1 answer

Install OpenMPI from repository with GCC instead of Intel

I would like to install openmpi from repository and need to use it with GCC. The problem is I have installed intel libraries too and it causes problems like this: mpicc.openmpi --version mpicc.openmpi: error while loading shared libraries:…
10
votes
1 answer

Problem with mpiCC

I just downloaded openmpi 1.10.2 from https://www.open-mpi.org/software/ompi/v1.10/ and installed it on my ubuntu 14.04LTS(./configure then make all install). But when I try to use mpiCC to compile a .cpp file, I get the error: mpiCC: error while…
9
votes
2 answers

How to check if the MPI already installed on my machine

I need to know how to check if MPI is already installed on my machine, and if not how much time it takes to be installed ?
Hamm
  • 255
8
votes
1 answer

installing openmpi on Ubuntu 14.04

I am trying to instlal OpenMPI on my Ubuntu 14.04 LTS following this guide When I run the command sudo apt-get install -y autotools-dev g++ build-essential openmpi1.5-bin openmpi1.5-doc libopenmpi1.5-dev I get the error messages E: Unable to locate…
BillyJean
  • 977
6
votes
2 answers

Unable to locate package libopenmpi-dev on 12.04

While trying to install open mpi on my Ubuntu 12.04, I am getting error unable to locate package libopenmpi-dev. What to do? $ sudo apt-get install libopenmpi-dev openmpi-bin openmpi-doc unable to locate package libopenmpi-dev unable to locate…
5
votes
2 answers

What is the difference MPI vs OpenMP?

I just want to know the differences between MPI vs OpenMP for a school project I have. I'm new on Ubuntu and i can't find a trustworthy website. I tried so many now. Please help me!
merjola
  • 51
4
votes
0 answers

OpenMPI - Update alternatives

I have troubles with openmpi crashing. The installed/repository version is "mpirun (Open MPI) 3.1.3". Consequently I have locally built a "mpirun (Open MPI) 4.1.0" which does not crash. I would now like to make the freshly installed version (located…
Torben
  • 41
4
votes
2 answers

“Invalid MIT-MAGIC-COOKIE-1 key” message - MPI on Ubuntu 20.04

Running a program that uses MPI gives me an "Invalid MIT-MAGIC-COOKIE-1 key" warning on Ubuntu 20.04. I only recently upgraded; I was having no such issues when I was using 19.10. I want to know what's going wrong. Here are some system results: $…
3
votes
2 answers

Multiple hosts password problem using mpirun

So I am running a parallel c++ program by sending jobs from an Ubuntu machine to remote hosts (also Ubuntu), the command line I use on the terminal is something like: mpirun -np 4 --host host1,host2 program.exe and then the next line on the…
3
votes
0 answers

MIT MAGIC KEY 1 error when running MPI programs compiled with openmpi 4.0.3 under Ubuntu 20.04

I am facing a weird issue. Whenever I run programs compiled with openmpi (version 4.0.3, the default on ubuntu 20.04 LTS), the following line is printed on the terminal Invalid MIT-MAGIC-COOKIE key. I have managed to pinpoint it to programs that are…
BlaB
  • 81
2
votes
2 answers

mpirun: error while loading shared libraries: libopen-rte.so.12:

I have installed openmpi-bin and openmpi-common, and I get the following error when I run either mpirun or mpiexec: mpirun: error while loading shared libraries: libopen-rte.so.12 As I checked, this library should be a part of the openmpi-bin (or…
2
votes
0 answers

Which Cluster Filesystem / Distributed Filesystem for Ubuntu 16.04

I have 5 servers, 16 threads running on each of them, producing a total of 80 files at the same time, which should finally be available for every other server in the same folder (it is a MPI parallelized Finite Element Software). What I did so far:…
UHM
  • 21
2
votes
0 answers

Beowulf cluster hard disk problem

I built a Beowulf cluster using the message passing interface (MPI). When I send a message that contains the path for a specific file in the slave node, the slave can't access its local hard disk to open the file (the error is permission…
sepeee
  • 21
2
votes
4 answers

"cannot find -lmpi*" when compiling openmpi code

I had try to install openmpi 1.8.1 from the source code at Ubuntu 14.04 server. I would like to use mpi for large scale calculation on single machine with multi cores. The simple "Hello world" test can be run without any problem. However, when I…
1
2 3 4 5