Deleted Added
sdiff udiff text old ( 3646:66853026ad52 ) new ( 4403:824f7311059c )
full compact
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
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",
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'
85
86class FFT(LiveProcess):
87 executable = options.rootdir + '/kernels/fft/FFT'
88 cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
89
90class LU_contig(LiveProcess):
91 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
92 cmd = 'LU -p' + str(options.numcpus)
93
94class LU_noncontig(LiveProcess):
95 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
96 cmd = 'LU -p' + str(options.numcpus)
97
98class Radix(LiveProcess):
99 executable = options.rootdir + '/kernels/radix/RADIX'
100 cmd = 'RADIX -n524288 -p' + str(options.numcpus)
101
102class Barnes(LiveProcess):
103 executable = options.rootdir + '/apps/barnes/BARNES'
104 cmd = 'BARNES'
105 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
106
107class FMM(LiveProcess):
108 executable = options.rootdir + '/apps/fmm/FMM'
109 cmd = 'FMM'
110 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
111
112class Ocean_contig(LiveProcess):
113 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
114 cmd = 'OCEAN -p' + str(options.numcpus)
115
116class Ocean_noncontig(LiveProcess):
117 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
118 cmd = 'OCEAN -p' + str(options.numcpus)
119
120class Raytrace(LiveProcess):
121 executable = options.rootdir + '/apps/raytrace/RAYTRACE'
122 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
123 + options.rootdir + 'apps/raytrace/inputs/teapot.env'
124
125class Water_nsquared(LiveProcess):
126 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
127 cmd = 'WATER-NSQUARED'
128 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
129
130class Water_spatial(LiveProcess):
131 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
132 cmd = 'WATER-SPATIAL'
133 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
134
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 ---