Created
January 27, 2016 13:21
-
-
Save pastewka/49ff0866b0f829fe2df5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #! /usr/bin/env python | |
| from socket import gethostname | |
| from mpi4py import MPI | |
| print "Process", MPI.COMM_WORLD.Get_rank(), "of", MPI.COMM_WORLD.Get_size(), "runs on host", gethostname() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment