https://github.com/thilinarmtb/launch-mpi-processes-with-system
Test launching MPI processes with system command.
https://github.com/thilinarmtb/launch-mpi-processes-with-system
Last synced: 3 months ago
JSON representation
Test launching MPI processes with system command.
- Host: GitHub
- URL: https://github.com/thilinarmtb/launch-mpi-processes-with-system
- Owner: thilinarmtb
- Created: 2024-09-11T14:56:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T15:11:15.000Z (about 1 year ago)
- Last Synced: 2025-03-27T03:41:42.856Z (6 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Introduction
============This repo contains an example which launches MPI processes using `system()`
command within a serial (non-MPI) program. Once the MPI processes are launched,
the serial program exits.Build the examples
==================Need to have CMake and MPI installed in your system. Then you can build the
binaries using `testmpi.sh`.```sh
./testmpi.sh
```Do `./testmpi.sh -- help` to see all the available options.
Run the example
===============By default, the binaries get installed in `${PWD}/install/bin`.
You can run the example by doing:```sh
cd install/bin
./serial
```You can see (using a tool like `top`) that the `mpi` programs are still running
even after the `serial` program exits.