Skip to content

Instantly share code, notes, and snippets.

@harshityadav95
Created August 23, 2019 19:19
Show Gist options
  • Save harshityadav95/db494a3a66e36f73695104b7b53e29ae to your computer and use it in GitHub Desktop.
Save harshityadav95/db494a3a66e36f73695104b7b53e29ae to your computer and use it in GitHub Desktop.
Python MPI
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
print('My rank is ',rank)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment