Created
September 28, 2018 19:33
-
-
Save vivek-bala/f07069c80217a467dd2c0305f89d8a33 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
from mpi4py import MPI | |
import socket | |
import subprocess | |
import sys | |
if __name__ == '__main__': | |
threads = sys.argv[1] | |
duration = sys.argv[2] | |
comm = MPI.COMM_WORLD | |
print "Hello! I'm rank %d from %d running on %s" % (comm.rank, comm.size, socket.gethostname()) | |
subprocess.call(['/ccs/proj/bip149/stress-ng-0.09.34/stress-ng','-c', threads, '-t', duration]) | |
comm.Barrier() # wait for everybody to synchronize _her |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment