se.py (7787:af976dd0c6e7) se.py (8167:f596091c854d)
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

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

71execfile(os.path.join(config_root, "common", "Options.py"))
72
73(options, args) = parser.parse_args()
74
75if args:
76 print "Error: script doesn't take any positional arguments"
77 sys.exit(1)
78
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

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

71execfile(os.path.join(config_root, "common", "Options.py"))
72
73(options, args) = parser.parse_args()
74
75if args:
76 print "Error: script doesn't take any positional arguments"
77 sys.exit(1)
78
79multiprocesses = []
80apps = []
81
79if options.bench:
82if options.bench:
80 try:
81 if buildEnv['TARGET_ISA'] != 'alpha':
82 print >>sys.stderr, "Simpoints code only works for Alpha ISA at this time"
83 sys.exit(1)
84 exec("workload = %s('alpha', 'tru64', 'ref')" % options.bench)
85 process = workload.makeLiveProcess()
86 except:
87 print >>sys.stderr, "Unable to find workload for %s" % 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!"
88 sys.exit(1)
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)
94 multiprocesses.append(workload.makeLiveProcess())
95 except:
96 print >>sys.stderr, "Unable to find workload for %s" % app
97 sys.exit(1)
89else:
90 process = LiveProcess()
91 process.executable = options.cmd
92 process.cmd = [options.cmd] + options.options.split()
98else:
99 process = LiveProcess()
100 process.executable = options.cmd
101 process.cmd = [options.cmd] + options.options.split()
102 multiprocesses.append(process)
93
94
95if options.input != "":
96 process.input = options.input
97if options.output != "":
98 process.output = options.output
99if options.errout != "":
100 process.errout = options.errout

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

146 physmem = PhysicalMemory(range=AddrRange("512MB")),
147 membus = Bus(), mem_mode = test_mem_mode)
148
149system.physmem.port = system.membus.port
150
151CacheConfig.config_cache(options, system)
152
153for i in xrange(np):
103
104
105if options.input != "":
106 process.input = options.input
107if options.output != "":
108 process.output = options.output
109if options.errout != "":
110 process.errout = options.errout

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

156 physmem = PhysicalMemory(range=AddrRange("512MB")),
157 membus = Bus(), mem_mode = test_mem_mode)
158
159system.physmem.port = system.membus.port
160
161CacheConfig.config_cache(options, system)
162
163for i in xrange(np):
154 system.cpu[i].workload = process
164 system.cpu[i].workload = multiprocesses[i]
155
156 if options.fastmem:
157 system.cpu[0].physmem_port = system.physmem.port
158
159root = Root(system = system)
160
161Simulation.run(options, root, system, FutureClass)
165
166 if options.fastmem:
167 system.cpu[0].physmem_port = system.physmem.port
168
169root = Root(system = system)
170
171Simulation.run(options, root, system, FutureClass)