run.py (3646:66853026ad52) run.py (4403:824f7311059c)
1# Copyright (c) 2005-2006 The Regents of The University of Michigan
1# Copyright (c) 2005-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
9# notice, this list of conditions and the following disclaimer in the

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

55 default = "32kB")
56parser.add_option("--l1latency",
57 default = 1)
58parser.add_option("--l2size",
59 default = "256kB")
60parser.add_option("--l2latency",
61 default = 10)
62parser.add_option("--rootdir",
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

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

55 default = "32kB")
56parser.add_option("--l1latency",
57 default = 1)
58parser.add_option("--l2size",
59 default = "256kB")
60parser.add_option("--l2latency",
61 default = 10)
62parser.add_option("--rootdir",
63 help="ROot directory of Splash2",
63 help="Root directory of Splash2",
64 default="/dist/splash2/codes")
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
78# --------------------
79# Define Splash2 Benchmarks
80# ====================
81class Cholesky(LiveProcess):
64 default="/dist/splash2/codes")
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
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'
82 cwd = options.rootdir + '/kernels/cholesky'
83 executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
84 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\
85 + options.rootdir + '/kernels/cholesky/inputs/tk23.O'
85
86class FFT(LiveProcess):
86
87class FFT(LiveProcess):
87 executable = options.rootdir + '/kernels/fft/FFT'
88 cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
88 cwd = options.rootdir + '/kernels/fft'
89 executable = options.rootdir + '/kernels/fft/FFT'
90 cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
89
90class LU_contig(LiveProcess):
91
92class LU_contig(LiveProcess):
91 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
92 cmd = 'LU -p' + str(options.numcpus)
93 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
94 cmd = 'LU -p' + str(options.numcpus)
95 cwd = options.rootdir + '/kernels/lu/contiguous_blocks'
93
94class LU_noncontig(LiveProcess):
96
97class LU_noncontig(LiveProcess):
95 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
96 cmd = 'LU -p' + str(options.numcpus)
98 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
99 cmd = 'LU -p' + str(options.numcpus)
100 cwd = options.rootdir + '/kernels/lu/non_contiguous_blocks'
97
98class Radix(LiveProcess):
101
102class Radix(LiveProcess):
99 executable = options.rootdir + '/kernels/radix/RADIX'
100 cmd = 'RADIX -n524288 -p' + str(options.numcpus)
103 executable = options.rootdir + '/kernels/radix/RADIX'
104 cmd = 'RADIX -n524288 -p' + str(options.numcpus)
105 cwd = options.rootdir + '/kernels/radix'
101
102class Barnes(LiveProcess):
106
107class Barnes(LiveProcess):
103 executable = options.rootdir + '/apps/barnes/BARNES'
104 cmd = 'BARNES'
105 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
108 executable = options.rootdir + '/apps/barnes/BARNES'
109 cmd = 'BARNES'
110 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
111 cwd = options.rootdir + '/apps/barnes'
106
107class FMM(LiveProcess):
112
113class FMM(LiveProcess):
108 executable = options.rootdir + '/apps/fmm/FMM'
109 cmd = 'FMM'
114 executable = options.rootdir + '/apps/fmm/FMM'
115 cmd = 'FMM'
116 if str(options.numcpus) == '1':
117 input = options.rootdir + '/apps/fmm/inputs/input.2048'
118 else:
110 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
119 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
120 cwd = options.rootdir + '/apps/fmm'
111
112class Ocean_contig(LiveProcess):
121
122class Ocean_contig(LiveProcess):
113 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
114 cmd = 'OCEAN -p' + str(options.numcpus)
123 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
124 cmd = 'OCEAN -p' + str(options.numcpus)
125 cwd = options.rootdir + '/apps/ocean/contiguous_partitions'
115
116class Ocean_noncontig(LiveProcess):
126
127class Ocean_noncontig(LiveProcess):
117 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
118 cmd = 'OCEAN -p' + str(options.numcpus)
128 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
129 cmd = 'OCEAN -p' + str(options.numcpus)
130 cwd = options.rootdir + '/apps/ocean/non_contiguous_partitions'
119
120class Raytrace(LiveProcess):
131
132class Raytrace(LiveProcess):
121 executable = options.rootdir + '/apps/raytrace/RAYTRACE'
122 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
123 + options.rootdir + 'apps/raytrace/inputs/teapot.env'
133 executable = options.rootdir + '/apps/raytrace/RAYTRACE'
134 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
135 + options.rootdir + '/apps/raytrace/inputs/teapot.env'
136 cwd = options.rootdir + '/apps/raytrace'
124
125class Water_nsquared(LiveProcess):
137
138class Water_nsquared(LiveProcess):
126 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
127 cmd = 'WATER-NSQUARED'
139 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
140 cmd = 'WATER-NSQUARED'
141 if options.numcpus==1:
142 input = options.rootdir + '/apps/water-nsquared/input'
143 else:
128 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
144 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
145 cwd = options.rootdir + '/apps/water-nsquared'
129
130class Water_spatial(LiveProcess):
146
147class Water_spatial(LiveProcess):
131 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
132 cmd = 'WATER-SPATIAL'
148 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
149 cmd = 'WATER-SPATIAL'
150 if options.numcpus==1:
151 input = options.rootdir + '/apps/water-spatial/input'
152 else:
133 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
153 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
154 cwd = options.rootdir + '/apps/water-spatial'
134
155
135
136# --------------------
137# Base L1 Cache Definition
138# ====================
139
140class L1(BaseCache):
141 latency = options.l1latency
142 block_size = 64
143 mshrs = 12

--- 125 unchanged lines hidden ---
156# --------------------
157# Base L1 Cache Definition
158# ====================
159
160class L1(BaseCache):
161 latency = options.l1latency
162 block_size = 64
163 mshrs = 12

--- 125 unchanged lines hidden ---