run.py (3358:f70480ec2642) run.py (3360:9a802e1085ec)
1# Copyright (c) 2005-2006 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

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

41parser = optparse.OptionParser()
42
43parser.add_option("-d", "--detailed", action="store_true")
44parser.add_option("-t", "--timing", action="store_true")
45parser.add_option("-m", "--maxtick", type="int")
46parser.add_option("-n", "--numcpus",
47 help="Number of cpus in total", type="int")
48parser.add_option("-f", "--frequency",
1# Copyright (c) 2005-2006 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

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

41parser = optparse.OptionParser()
42
43parser.add_option("-d", "--detailed", action="store_true")
44parser.add_option("-t", "--timing", action="store_true")
45parser.add_option("-m", "--maxtick", type="int")
46parser.add_option("-n", "--numcpus",
47 help="Number of cpus in total", type="int")
48parser.add_option("-f", "--frequency",
49 default = "1GHz",
49 help="Frequency of each CPU")
50parser.add_option("-p", "--protocol",
51 default="moesi",
52 help="The coherence protocol to use for the L1'a (i.e. MOESI, MOSI)")
50 help="Frequency of each CPU")
51parser.add_option("-p", "--protocol",
52 default="moesi",
53 help="The coherence protocol to use for the L1'a (i.e. MOESI, MOSI)")
53parser.add_option("--l1size")
54parser.add_option("--l1latency")
55parser.add_option("--l2size")
56parser.add_option("--l2latency")
54parser.add_option("--l1size",
55 default = "32kB")
56parser.add_option("--l1latency",
57 default = 1)
58parser.add_option("--l2size",
59 default = "256kB")
60parser.add_option("--l2latency",
61 default = 10)
57parser.add_option("--rootdir",
58 help="ROot directory of Splash2",
62parser.add_option("--rootdir",
63 help="ROot directory of Splash2",
59 default="../../Splash2/codes")
64 default="/dist/splash2/codes")
60parser.add_option("-b", "--benchmark",
61 help="Splash 2 benchmark to run")
62
63(options, args) = parser.parse_args()
64
65if args:
66 print "Error: script doesn't take any positional arguments"
67 sys.exit(1)
68
65parser.add_option("-b", "--benchmark",
66 help="Splash 2 benchmark to run")
67
68(options, args) = parser.parse_args()
69
70if args:
71 print "Error: script doesn't take any positional arguments"
72 sys.exit(1)
73
74if not options.numcpus:
75 print "Specify the number of cpus with -n"
76 sys.exit(1)
77
69# --------------------
70# Define Splash2 Benchmarks
71# ====================
72class Cholesky(LiveProcess):
73 executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
74 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\
75 + options.rootdir + '/kernels/cholesky/inputs/tk23.O'
76
77class FFT(LiveProcess):
78# --------------------
79# Define Splash2 Benchmarks
80# ====================
81class Cholesky(LiveProcess):
82 executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
83 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\
84 + options.rootdir + '/kernels/cholesky/inputs/tk23.O'
85
86class FFT(LiveProcess):
78 executable = options.rootdir + 'kernels/fft/FFT'
87 executable = options.rootdir + '/kernels/fft/FFT'
79 cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
80
81class LU_contig(LiveProcess):
88 cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
89
90class LU_contig(LiveProcess):
82 executable = options.rootdir + 'kernels/lu/contiguous_blocks/LU'
91 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
83 cmd = 'LU -p' + str(options.numcpus)
84
85class LU_noncontig(LiveProcess):
92 cmd = 'LU -p' + str(options.numcpus)
93
94class LU_noncontig(LiveProcess):
86 executable = options.rootdir + 'kernels/lu/non_contiguous_blocks/LU'
95 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
87 cmd = 'LU -p' + str(options.numcpus)
88
89class Radix(LiveProcess):
96 cmd = 'LU -p' + str(options.numcpus)
97
98class Radix(LiveProcess):
90 executable = options.rootdir + 'kernels/radix/RADIX'
99 executable = options.rootdir + '/kernels/radix/RADIX'
91 cmd = 'RADIX -n524288 -p' + str(options.numcpus)
92
93class Barnes(LiveProcess):
100 cmd = 'RADIX -n524288 -p' + str(options.numcpus)
101
102class Barnes(LiveProcess):
94 executable = options.rootdir + 'apps/barnes/BARNES'
103 executable = options.rootdir + '/apps/barnes/BARNES'
95 cmd = 'BARNES'
104 cmd = 'BARNES'
96 input = options.rootdir + 'apps/barnes/input.p' + str(options.numcpus)
105 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
97
98class FMM(LiveProcess):
106
107class FMM(LiveProcess):
99 executable = options.rootdir + 'apps/fmm/FMM'
108 executable = options.rootdir + '/apps/fmm/FMM'
100 cmd = 'FMM'
109 cmd = 'FMM'
101 input = options.rootdir + 'apps/fmm/inputs/input.2048.p' + str(options.numcpus)
110 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
102
103class Ocean_contig(LiveProcess):
111
112class Ocean_contig(LiveProcess):
104 executable = options.rootdir + 'apps/ocean/contiguous_partitions/OCEAN'
113 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
105 cmd = 'OCEAN -p' + str(options.numcpus)
106
107class Ocean_noncontig(LiveProcess):
114 cmd = 'OCEAN -p' + str(options.numcpus)
115
116class Ocean_noncontig(LiveProcess):
108 executable = options.rootdir + 'apps/ocean/non_contiguous_partitions/OCEAN'
117 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
109 cmd = 'OCEAN -p' + str(options.numcpus)
110
111class Raytrace(LiveProcess):
118 cmd = 'OCEAN -p' + str(options.numcpus)
119
120class Raytrace(LiveProcess):
112 executable = options.rootdir + 'apps/raytrace/RAYTRACE'
121 executable = options.rootdir + '/apps/raytrace/RAYTRACE'
113 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
114 + options.rootdir + 'apps/raytrace/inputs/teapot.env'
115
116class Water_nsquared(LiveProcess):
122 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
123 + options.rootdir + 'apps/raytrace/inputs/teapot.env'
124
125class Water_nsquared(LiveProcess):
117 executable = options.rootdir + 'apps/water-nsquared/WATER-NSQUARED'
126 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
118 cmd = 'WATER-NSQUARED'
127 cmd = 'WATER-NSQUARED'
119 input = options.rootdir + 'apps/water-nsquared/input.p' + str(options.numcpus)
128 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
120
121class Water_spatial(LiveProcess):
129
130class Water_spatial(LiveProcess):
122 executable = options.rootdir + 'apps/water-spatial/WATER-SPATIAL'
131 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
123 cmd = 'WATER-SPATIAL'
132 cmd = 'WATER-SPATIAL'
124 input = options.rootdir + 'apps/water-spatial/input.p' + str(options.numcpus)
133 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
125
126
127# --------------------
128# Base L1 Cache Definition
129# ====================
130
131class L1(BaseCache):
132 latency = options.l1latency

--- 127 unchanged lines hidden ---
134
135
136# --------------------
137# Base L1 Cache Definition
138# ====================
139
140class L1(BaseCache):
141 latency = options.l1latency

--- 127 unchanged lines hidden ---