#!/usr/bin/env python import sys, os, env_setup sys.path.append(os.path.join(env_setup.benchmarks_root(), 'tools', 'scheduler')) import getopt, intelqueue, iqclient, iqlib, cpistack, buildstack, gnuplot ic = iqclient.IntelClient() age = 0 # in days, 0 == get all use_simple = False groupname = 'iiswc2011' outputpath = 'cpistack-collect' jobids = {} errors_seen = 0 jobs_processed = 0 for job in ic.job_list(groupname, age * 86400, intelqueue.JobState.DONE): iqlib.job_annotate(job) # Store the most recently completed jobid jobids[job['name']] = job['jobid'] # Sort the jobs jobids_x = sorted(jobids.iteritems(), key=lambda (name, jobid): (name.split('-')[1], name.split('-')[2], name.split('-')[3], int(name.split('-')[4]))) html_file = open(os.path.join(outputpath, 'index.html'), 'w') html_file.write(r'''
#!/usr/bin/env python import os, sys, time, re, getopt, subprocess, env_setup sys.path.extend([ env_setup.benchmarks_root(), os.path.join(env_setup.benchmarks_root(), 'tools', 'scheduler') ]) import iqclient, iqlib, intelqueue ic = iqclient.IntelClient() def ex_ret(cmd): return subprocess.Popen(['bash', '-c', cmd], stdout=subprocess.PIPE).communicate()[0] def git(args): return ex_ret('git --git-dir="%s/.git" %s' % (env_setup.sim_root(), args)).strip() if len(sys.argv) < 3: prefix = sys.argv[1] os.system( 'iqall -J$USER -jdisect-%s-%% -a10 | grep disect | sort -r -k2 -t-' % prefix) print print
# A copy of this file is distributed with the binaries of Sniper and Benchmarks import sys, os, re, subprocess, cStringIO, sniper_stats, sniper_config try: import json except ImportError: import localjson as json try: try: import env_setup sys.path.append(os.path.join(env_setup.benchmarks_root(), 'tools', 'scheduler')) except EnvironmentError, e: pass import intelqueue, iqclient, packdir, app_constraints ic = iqclient.IntelClient() ic_invalid = False except ImportError: ic_invalid = True class SniperResultsException(Exception): pass def get_config(jobid = None, resultsdir = None, force_deleted = True): if jobid: if ic_invalid: raise RuntimeError('Cannot fetch results from server, make sure BENCHMARKS_ROOT points to a valid copy of benchmarks+iqlib') simcfg = ic.job_output(jobid, 'sim.cfg', force_deleted) elif resultsdir:
# A copy of this file is distributed with the binaries of Sniper and Benchmarks import sys, os, re, subprocess, cStringIO, sniper_stats, sniper_config try: import json except ImportError: import localjson as json try: try: import env_setup sys.path.append(os.path.join(env_setup.benchmarks_root(), "tools", "scheduler")) except EnvironmentError, e: pass import intelqueue, iqclient, packdir, app_constraints ic = iqclient.IntelClient() ic_invalid = False except ImportError: ic_invalid = True class SniperResultsException(Exception): pass def get_config(jobid=None, resultsdir=None, force_deleted=True): if jobid: