se.py (8167:f596091c854d) se.py (8168:5cbb0a68dce1)
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 73 unchanged lines hidden (view full) ---

82if options.bench:
83 apps = options.bench.split("-")
84 if len(apps) != options.num_cpus:
85 print "number of benchmarks not equal to set num_cpus!"
86 sys.exit(1)
87
88 for app in apps:
89 try:
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 73 unchanged lines hidden (view full) ---

82if options.bench:
83 apps = options.bench.split("-")
84 if len(apps) != options.num_cpus:
85 print "number of benchmarks not equal to set num_cpus!"
86 sys.exit(1)
87
88 for app in apps:
89 try:
90 if buildEnv['TARGET_ISA'] != 'alpha':
91 print >>sys.stderr, "Simpoints code only works for Alpha ISA at this time"
92 sys.exit(1)
93 exec("workload = %s('alpha', 'tru64', 'ref')" % app)
90 if buildEnv['TARGET_ISA'] == 'alpha':
91 exec("workload = %s('alpha', 'tru64', 'ref')" % app)
92 else:
93 exec("workload = %s(buildEnv['TARGET_ISA'], 'linux', 'ref')" % app)
94 multiprocesses.append(workload.makeLiveProcess())
95 except:
94 multiprocesses.append(workload.makeLiveProcess())
95 except:
96 print >>sys.stderr, "Unable to find workload for %s" % app
96 print >>sys.stderr, "Unable to find workload for %s: %s" % (buildEnv['TARGET_ISA'], app)
97 sys.exit(1)
98else:
99 process = LiveProcess()
100 process.executable = options.cmd
101 process.cmd = [options.cmd] + options.options.split()
102 multiprocesses.append(process)
103
104

--- 67 unchanged lines hidden ---
97 sys.exit(1)
98else:
99 process = LiveProcess()
100 process.executable = options.cmd
101 process.cmd = [options.cmd] + options.options.split()
102 multiprocesses.append(process)
103
104

--- 67 unchanged lines hidden ---