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", |
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 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' |
86 87class FFT(LiveProcess): |
88 cwd = options.rootdir + '/kernels/fft' 89 executable = options.rootdir + '/kernels/fft/FFT' 90 cmd = 'FFT -p' + str(options.numcpus) + ' -m18' |
91 92class LU_contig(LiveProcess): |
93 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU' 94 cmd = 'LU -p' + str(options.numcpus) 95 cwd = options.rootdir + '/kernels/lu/contiguous_blocks' |
96 97class LU_noncontig(LiveProcess): |
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' |
101 102class Radix(LiveProcess): |
103 executable = options.rootdir + '/kernels/radix/RADIX' 104 cmd = 'RADIX -n524288 -p' + str(options.numcpus) 105 cwd = options.rootdir + '/kernels/radix' |
106 107class Barnes(LiveProcess): |
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' |
112 113class FMM(LiveProcess): |
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: |
119 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus) |
120 cwd = options.rootdir + '/apps/fmm' |
121 122class Ocean_contig(LiveProcess): |
123 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN' 124 cmd = 'OCEAN -p' + str(options.numcpus) 125 cwd = options.rootdir + '/apps/ocean/contiguous_partitions' |
126 127class Ocean_noncontig(LiveProcess): |
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' |
131 132class Raytrace(LiveProcess): |
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' |
137 138class Water_nsquared(LiveProcess): |
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: |
144 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus) |
145 cwd = options.rootdir + '/apps/water-nsquared' |
146 147class Water_spatial(LiveProcess): |
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: |
153 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus) |
154 cwd = options.rootdir + '/apps/water-spatial' |
155 |
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 --- |