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
75 questions
11
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…
8
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
  • 235
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
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
  • 4
2
votes
1 answer

Problems with MPI after upgrading to ubuntu 22.04

I was working with mpi on the older version of ubuntu and everything was fine untill I upgraded to ubuntu 22.04. When I try to compile my program using the command mpicxx -o , it gives me a long list of errors which I am pasting at the end of my…
1
vote
2 answers

GCC fatal error: mpi.h: No such file or directory

When I try to execute code by using this command: gcc ASD.c -o ASD.out* I get this: ASD.c:2:10: fatal error: mpi.h: No such file or directory 2 | #include | ^~~~~~~ compilation terminated. Any help to fix this, please?
Saeed Alhothali
  • 21
  • 1
  • 1
  • 2
0
votes
1 answer

Where to find openmpi-doc on my ubuntu 12.04?

I installed openmpi by apt-get install openmpi-doc. I think it is some folder that contain the document on openmpi? where can I find it? I just switched from Windows to Bbuntu, so a lot of things are difficult for me. Thank you.
Michael
  • 101
  • 1
0
votes
0 answers

MPI mpirun execvp error on file -np : no such file or directory

I am trying to run this using MPI as follows: mpirun –np 16 ./wrf.exe & and I am getting the following error: [proxy:0:0@dharmsai] HYDU_create_process (./utils/launch/launch.c:74): execvp error on file –np (No such file or directory) What is…
0
votes
1 answer

mpirun dosent work with openFoam (suddenly)

my mpirun on Ubuntu 20.04 dosent work anymore. I used it a few weeks back and it works good and well. I just wanted to use it a few minutes ago and it doesent work. I decompose the case first and then i use the mpirun -np 4 interFoam…
Kai
  • 1
0
votes
0 answers

Remove all previous version MPI and reinstall correctly it

I got some errors from mpi, mpich in UBUNTU 18.04, how can I remove all previous version MPI correctly. ||/ Name Version Architecture Description +++-==============-============-============-================================= un …
ABCDEMMM
  • 325
0
votes
0 answers

How to set default mpicc

Recently, I have installed intel compiler, I loss the information for the set default mpicc, How can I set the following default in an easy way? CC variable not set, CC  = /usr/bin/mpicc CXX variable not set, CXX = /usr/bin/mpicxx FC variable not…
ABCDEMMM
  • 325
0
votes
0 answers

mpi exit code 65

I am running mpirun on a new (to me) refurbished workstation with 20 processors. I'm using Ubuntu 16.04 LTS. Occasionally it terminates with an exit code of 65 for no apparent reason. There is nothing in the terminal or the application log to…