Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bsamseth/mpi4py-travis
Reference repository showing how to use Travis CI for MPI with C++17 and mpi4py with Python3.7+.
https://github.com/bsamseth/mpi4py-travis
cpp17 mpi mpi4py openmpi python37 travis travis-ci
Last synced: 27 days ago
JSON representation
Reference repository showing how to use Travis CI for MPI with C++17 and mpi4py with Python3.7+.
- Host: GitHub
- URL: https://github.com/bsamseth/mpi4py-travis
- Owner: bsamseth
- License: unlicense
- Created: 2019-02-18T15:36:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T06:20:39.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T14:04:30.212Z (3 months ago)
- Topics: cpp17, mpi, mpi4py, openmpi, python37, travis, travis-ci
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/bsamseth/mpi4py-travis.svg?branch=master)](https://travis-ci.org/bsamseth/mpi4py-travis)
# mpi4py-travisThis is a reference repository showing how to use Travis CI with:
- [OpenMPI](open-mpi.org) with C++17 support
- [mpi4py](https://mpi4py.readthedocs.io/en/stable/) with Python 3.7The approach is to fetch a C++17 compiler (e.g. `g++7`) and Python 3.7 with special apt-sources, then building OpenMPI from source with this compiler, which results in a C++17 compatible MPI compiler. Finally, mpi4py is installed, being told about this new MPI compiler.
Additionally, because building MPI from source takes quite some time (10+ minutes), the installation is cached between each build. This means the MPI installation only has to be built once, and is reused the rest of the time, which saves time.
See [`.travis.yml`](.travis.yml) for the how to do this!