Created
August 12, 2017 12:45
-
-
Save xkumiyu/977d0cd2e1b81e92ffc9eae247a36224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from mpi4py import MPI | |
comm = MPI.COMM_WORLD | |
size = comm.Get_size() | |
rank = comm.Get_rank() | |
for i in range(size): | |
if i == rank: | |
print("{} {}".format(os.uname()[1], i)) | |
comm.Barrier() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment