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 |
37import m5 38from m5.objects import * |
39 |
40m5.util.addToPath('../common') 41 |
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: |
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""") |
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 --- |