https://github.com/peterrum/mpi-split-output
https://github.com/peterrum/mpi-split-output
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterrum/mpi-split-output
- Owner: peterrum
- Created: 2018-02-22T07:19:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-30T13:24:33.000Z (about 2 years ago)
- Last Synced: 2025-03-14T00:41:48.685Z (about 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Usage
```bash
mpisplit -np 7 bash ./main | cat temp_*
```
# Installation
```
function mpisplit() {
np=0
while :; do
case $1 in
-np|--flag1) shift; np=$1;
;;
*) break
esac
shift
done
if [ "$np" -le 1 ]; then
$@
else
mpirun -np $np bash ~/projects/mpi-split/split.sh $@
fi
}
```