“… the best setup would be creating 4 processes on each machine, …”
In this case, world_size should be 4, each process on every machine should have a rank from 0 to 4?
Then with this setup, how to define the rank of these two machines?