[mpich-discuss] linux shell calls and mpi
Nicolas Rosner
nrosner at gmail.com
Sat Oct 15 16:09:38 CDT 2011
Charles, if your C program just needs to trigger an external script on
exit and you don't plan to pass parameters to it or expect results
back from it (other than the effect of running it everywhere), then
isn't this basically what you want?
$ mpiexec -f nodes ./hellompi ; mpiexec -f nodes /usr/bin/python ./hello.py
Hello MPI world! I'm rank 0 of 3.
Hello MPI world! I'm rank 1 of 3.
Hello MPI world! I'm rank 2 of 3.
Hello world, I'm a python script.
Hello world, I'm a python script.
Hello world, I'm a python script.
$ ls
hello.py
hellompi
hellompi.c
nodes
N.
More information about the mpich-discuss
mailing list