add support for MPMD (multiple program, multiple data) launch mode#2
add support for MPMD (multiple program, multiple data) launch mode#2guoyejun wants to merge 1 commit into
Conversation
the following command: mpiexec -genv WORLD_SIZE 2 ... \ -np 1 -host localhost ... -env RANK 0 final_cmd : \ -np 1 -host localhost ... -env RANK 1 final_cmd is converted into: mpitx -genv WORLD_SIZE 2 ... -- \ -np 1 -host localhost ... -env RANK 0 final_cmd : \ -np 1 -host localhost ... -env RANK 1 final_cmd and finally calls: mpiexec -genv WORLD_SIZE 2 ... \ -np 1 -host localhost ... -env RANK 0 mpitx "mpitx_child" final_cmd : \ -np 1 -host localhost ... -env RANK 1 mpitx "mpitx_child" final_cmd
|
I really appreciate your efforts put into mpitx. I have a concern about the usage of the separator I think Then, you will not need to perform ad-hoc parsing for I think we don't have to separate between global and local options by our own, if the separator |
|
thanks for the comment, one concern is that there might be tens, hundreds or possible thousands of 'final_cmd' in the command line, it is not easy for the user to add '--' for each of them. '--' can be considered as the separator of 'mpiexec global part' and 'programs part'. |
|
I understand your concern, but I don't think it is a good idea to break the standard meaning of According to man bash,
Another problem is that, if we do not use This is why mpitx mandates the user to separate the options and commands by Another benefit in using is still a vaild command line. If we put |
|
agree with the usage of |
|
I totally understand. Thank you for your time and efforts. |
the following command:
mpiexec -genv WORLD_SIZE 2 ...
-np 1 -host localhost ... -env RANK 0 final_cmd : \ -np 1 -host localhost ... -env RANK 1 final_cmd
is converted into:
mpitx -genv WORLD_SIZE 2 ... --
-np 1 -host localhost ... -env RANK 0 final_cmd : \ -np 1 -host localhost ... -env RANK 1 final_cmd
and finally calls:
mpiexec -genv WORLD_SIZE 2 ...
-np 1 -host localhost ... -env RANK 0 mpitx "mpitx_child" final_cmd : \ -np 1 -host localhost ... -env RANK 1 mpitx "mpitx_child" final_cmd