Athena Cluster
From IPRE Wiki
Revision as of 14:55, 25 October 2013 by Doug Blank (Talk | contribs)
Contents
Hello MPI in Python
Here are the steps, briefly, for running a MPI Python Script on Athena
- log into athena.brynmawr.edu
- find out which /data path you have a shared directory (either /data1, or /data2)
- create a python program in your /dataN/userid/ directory
- create a PBS script
- submit the PBS script
- check on status
- see the results
Step 1: Log into Athena
Step 2: Where is my /data?
Step 3: Create a Python script
# More tutorials available at: # http://mpi4py.scipy.org/docs/usrman/tutorial.html from mpi4py import MPI import platform comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() machine = platform.node() print("Hello MPI from %s %d of %d" % (machine, rank, size))