cluster.py (4876:a18cedc19da5) cluster.py (6654:4c84e771cca7)
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
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 os
34import optparse
35import sys
36
33import m5
34from m5.objects import *
37import m5
38from m5.objects import *
35import os, optparse, sys
36m5.AddToPath('../common')
37
39
40m5.util.addToPath('../common')
41
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:
42# --------------------
43# Define Command Line Options
44# ====================
45
46parser = optparse.OptionParser()
47
48parser.add_option("-d", "--detailed", action="store_true")
49parser.add_option("-t", "--timing", action="store_true")

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

265 root.workload = Ocean_noncontig()
266elif options.benchmark == 'Raytrace':
267 root.workload = Raytrace()
268elif options.benchmark == 'WaterNSquared':
269 root.workload = Water_nsquared()
270elif options.benchmark == 'WaterSpatial':
271 root.workload = Water_spatial()
272else:
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 m5.util.panic("""
274The --benchmark environment variable was set to something improper.
275Use Cholesky, FFT, LUContig, LUNoncontig, Radix, Barnes, FMM, OceanContig,
276OceanNoncontig, Raytrace, WaterNSquared, or WaterSpatial
277""")
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 ---
278
279# --------------------
280# Assign the workload to the cpus
281# ====================
282
283for cluster in clusters:
284 for cpu in cluster.cpus:
285 cpu.workload = root.workload

--- 19 unchanged lines hidden ---