PyTorch binaries do not include an MPI implementation and you will have to build from source. There are many different implementations you can choose from:
Thank you. Based on your suggestions, I manually compiled the PyTorch source code and enabled the GLOO and MPI backends. Now I can complete the compilation and linking process without any error messages.Thanks again.