Deleted Added
sdiff udiff text old ( 1714:e83b18b0238d ) new ( 3358:f70480ec2642 )
full compact
1# Copyright (c) 2005 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
9# notice, this list of conditions and the following disclaimer in the

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

21# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ron Dreslinski
28
29from m5 import *
30import Splash2
31
32if 'SYSTEM' not in env:
33 panic("The SYSTEM environment variable must be set!\ne.g -ESYSTEM=Detailed\n")
34
35if env['SYSTEM'] == 'Simple':
36 from SimpleConfig import *
37 BaseCPU.workload = Parent.workload
38 SimpleStandAlone.cpu = [ CPU() for i in xrange(int(env['NP'])) ]
39 root = SimpleStandAlone()
40elif env['SYSTEM'] == 'Detailed':
41 from DetailedConfig import *
42 BaseCPU.workload = Parent.workload
43 DetailedStandAlone.cpu = [ DetailedCPU() for i in xrange(int(env['NP'])) ]
44 root = DetailedStandAlone()
45else:
46 panic("The SYSTEM environment variable was set to something improper.\n Use Simple or Detailed\n")
47
48if 'BENCHMARK' not in env:
49 panic("The BENCHMARK environment variable must be set!\ne.g. -EBENCHMARK=Cholesky\n")
50
51if env['BENCHMARK'] == 'Cholesky':
52 root.workload = Splash2.Cholesky()
53elif env['BENCHMARK'] == 'FFT':
54 root.workload = Splash2.FFT()
55elif env['BENCHMARK'] == 'LUContig':
56 root.workload = Splash2.LU_contig()
57elif env['BENCHMARK'] == 'LUNoncontig':
58 root.workload = Splash2.LU_noncontig()
59elif env['BENCHMARK'] == 'Radix':
60 root.workload = Splash2.Radix()
61elif env['BENCHMARK'] == 'Barnes':
62 root.workload = Splash2.Barnes()
63elif env['BENCHMARK'] == 'FMM':
64 root.workload = Splash2.FMM()
65elif env['BENCHMARK'] == 'OceanContig':
66 root.workload = Splash2.Ocean_contig()
67elif env['BENCHMARK'] == 'OceanNoncontig':
68 root.workload = Splash2.Ocean_noncontig()
69elif env['BENCHMARK'] == 'Raytrace':
70 root.workload = Splash2.Raytrace()
71elif env['BENCHMARK'] == 'WaterNSquared':
72 root.workload = Splash2.Water_nsquared()
73elif env['BENCHMARK'] == 'WaterSpatial':
74 root.workload = Splash2.Water_spatial()
75else:
76 panic("The BENCHMARK environment variable was set to something" \
77 +" improper.\nUse Cholesky, FFT, LUContig, LUNoncontig, Radix" \
78 +", Barnes, FMM, OceanContig,\nOceanNoncontig, Raytrace," \
79 +" WaterNSquared, or WaterSpatial\n")