Last active
December 23, 2016 17:05
-
-
Save danielsuo/6263a860728fd1eb7616fc5e86d35f54 to your computer and use it in GitHub Desktop.
Collecting CPU utilization on the PARSEC benchmark (parsec.cs.princeton.edu)
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
#!/usr/bin/python | |
import sys, subprocess | |
apps = [ | |
'blackscholes', | |
'bodytrack', | |
'canneal', | |
'dedup', | |
'facesim', | |
'ferret', | |
'fluidanimate', | |
'freqmine', | |
'raytrace', | |
'streamcluster', | |
'swaptions', | |
'vips', | |
'x264'] | |
inputs = [ | |
'test', | |
'simdev', | |
'simsmall', | |
'simmedium', | |
'simlarge', | |
'native' | |
] | |
threads = [1, 2, 4, 8, 16, 32, 64, 128, 256] | |
for app in apps: | |
for thread in threads: | |
for input in inputs: | |
cmd = '../bin/parsecmgmt -a run -i %s -p %s -n %d' % (input, app, thread) | |
file = open('./out/%s-%s-%d.out' % (app, input, thread), 'w') | |
print cmd | |
p = subprocess.call([cmd], shell=True, stdout=file, stderr=file) | |
file.close() | |
print 'Done!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment