I had an issue a few years ago about MPI support, unfortunately I did not have a meaningful solution at the time.
Perhaps we can do something along the lines of:
mpirun -np N py-spy record --mpi python script.py
And the --mpi flag triggers a rank-unique filename for the outputs?
Currently I can spawn as many mpi ranks worth of py-spy, but they all attempt to write results to the same file, and of course this doesn't work.
Perhaps we can have rsmpi as an optional dependency that's imported upon detection of the --mpi flag, and then we can have process-unique file writing?
I'm not familiar with rust but I hope this is a somewhat actionable way forward and I haven't said anything obviously stupid.
I had an issue a few years ago about MPI support, unfortunately I did not have a meaningful solution at the time.
Perhaps we can do something along the lines of:
mpirun -np N py-spy record --mpi python script.py
And the
--mpi
flag triggers a rank-unique filename for the outputs?Currently I can spawn as many mpi ranks worth of py-spy, but they all attempt to write results to the same file, and of course this doesn't work.
Perhaps we can have rsmpi as an optional dependency that's imported upon detection of the
--mpi
flag, and then we can have process-unique file writing?I'm not familiar with rust but I hope this is a somewhat actionable way forward and I haven't said anything obviously stupid.