Skip to content

Instantly share code, notes, and snippets.

@pastewka
Created January 27, 2016 13:21
Show Gist options
  • Save pastewka/49ff0866b0f829fe2df5 to your computer and use it in GitHub Desktop.
Save pastewka/49ff0866b0f829fe2df5 to your computer and use it in GitHub Desktop.
#! /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