Deleted Added
sdiff udiff text old ( 4876:a18cedc19da5 ) new ( 6654:4c84e771cca7 )
full compact
1# Copyright (c) 2006-2007 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

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

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ron Dreslinski
28
29# Simple test script
30#
31# "m5 test.py"
32
33import m5
34from m5.objects import *
35import os, optparse, sys
36m5.AddToPath('../common')
37
38# --------------------
39# Define Command Line Options
40# ====================
41
42parser = optparse.OptionParser()
43
44parser.add_option("-d", "--detailed", action="store_true")
45parser.add_option("-t", "--timing", action="store_true")

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

261 root.workload = Ocean_noncontig()
262elif options.benchmark == 'Raytrace':
263 root.workload = Raytrace()
264elif options.benchmark == 'WaterNSquared':
265 root.workload = Water_nsquared()
266elif options.benchmark == 'WaterSpatial':
267 root.workload = Water_spatial()
268else:
269 panic("The --benchmark environment variable was set to something" \
270 +" improper.\nUse Cholesky, FFT, LUContig, LUNoncontig, Radix" \
271 +", Barnes, FMM, OceanContig,\nOceanNoncontig, Raytrace," \
272 +" WaterNSquared, or WaterSpatial\n")
273
274# --------------------
275# Assign the workload to the cpus
276# ====================
277
278for cluster in clusters:
279 for cpu in cluster.cpus:
280 cpu.workload = root.workload

--- 19 unchanged lines hidden ---