| 1 | initial version |
As suggested by rburing, I installed the (Ubuntu packages) openmpi-bin and openmpi-common via the system package manager and mpi4py with sage -pip install mpi4py. The application can be run according to the mpi4py tutorial. On Ubuntu 18.04, an additional problem was an out of date version of libstdc++. It can be upgraded as explained in this StackOverflow discussion.
$ sudo apt-get install openmpi-bin openmpi-common
$ sage -pip install mpi4py
$ mpiexec -n 1 sage main_mpi.sage
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.