run.py (4876:a18cedc19da5) | run.py (5255:79825caee5fd) |
---|---|
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 --- 37 unchanged lines hidden (view full) --- 46parser.add_option("-n", "--numcpus", 47 help="Number of cpus in total", type="int") 48parser.add_option("-f", "--frequency", 49 default = "1GHz", 50 help="Frequency of each CPU") 51parser.add_option("--l1size", 52 default = "32kB") 53parser.add_option("--l1latency", | 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 --- 37 unchanged lines hidden (view full) --- 46parser.add_option("-n", "--numcpus", 47 help="Number of cpus in total", type="int") 48parser.add_option("-f", "--frequency", 49 default = "1GHz", 50 help="Frequency of each CPU") 51parser.add_option("--l1size", 52 default = "32kB") 53parser.add_option("--l1latency", |
54 default = 1) | 54 default = "1ns") |
55parser.add_option("--l2size", 56 default = "256kB") 57parser.add_option("--l2latency", | 55parser.add_option("--l2size", 56 default = "256kB") 57parser.add_option("--l2latency", |
58 default = 10) | 58 default = "10ns") |
59parser.add_option("--rootdir", 60 help="Root directory of Splash2", 61 default="/dist/splash2/codes") 62parser.add_option("-b", "--benchmark", 63 help="Splash 2 benchmark to run") 64 65(options, args) = parser.parse_args() 66 --- 6 unchanged lines hidden (view full) --- 73 sys.exit(1) 74 75# -------------------- 76# Define Splash2 Benchmarks 77# ==================== 78class Cholesky(LiveProcess): 79 cwd = options.rootdir + '/kernels/cholesky' 80 executable = options.rootdir + '/kernels/cholesky/CHOLESKY' | 59parser.add_option("--rootdir", 60 help="Root directory of Splash2", 61 default="/dist/splash2/codes") 62parser.add_option("-b", "--benchmark", 63 help="Splash 2 benchmark to run") 64 65(options, args) = parser.parse_args() 66 --- 6 unchanged lines hidden (view full) --- 73 sys.exit(1) 74 75# -------------------- 76# Define Splash2 Benchmarks 77# ==================== 78class Cholesky(LiveProcess): 79 cwd = options.rootdir + '/kernels/cholesky' 80 executable = options.rootdir + '/kernels/cholesky/CHOLESKY' |
81 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\ 82 + options.rootdir + '/kernels/cholesky/inputs/tk23.O' | 81 cmd = ['CHOLESKY', '-p', str(options.numcpus), 82 options.rootdir + '/kernels/cholesky/inputs/tk23.O'] |
83 84class FFT(LiveProcess): 85 cwd = options.rootdir + '/kernels/fft' 86 executable = options.rootdir + '/kernels/fft/FFT' | 83 84class FFT(LiveProcess): 85 cwd = options.rootdir + '/kernels/fft' 86 executable = options.rootdir + '/kernels/fft/FFT' |
87 cmd = 'FFT -p' + str(options.numcpus) + ' -m18' | 87 cmd = ['FFT', '-p', str(options.numcpus), '-m18'] |
88 89class LU_contig(LiveProcess): 90 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU' | 88 89class LU_contig(LiveProcess): 90 executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU' |
91 cmd = 'LU -p' + str(options.numcpus) | 91 cmd = ['LU', '-p', str(options.numcpus)] |
92 cwd = options.rootdir + '/kernels/lu/contiguous_blocks' 93 94class LU_noncontig(LiveProcess): 95 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU' | 92 cwd = options.rootdir + '/kernels/lu/contiguous_blocks' 93 94class LU_noncontig(LiveProcess): 95 executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU' |
96 cmd = 'LU -p' + str(options.numcpus) | 96 cmd = ['LU', '-p', str(options.numcpus)] |
97 cwd = options.rootdir + '/kernels/lu/non_contiguous_blocks' 98 99class Radix(LiveProcess): 100 executable = options.rootdir + '/kernels/radix/RADIX' | 97 cwd = options.rootdir + '/kernels/lu/non_contiguous_blocks' 98 99class Radix(LiveProcess): 100 executable = options.rootdir + '/kernels/radix/RADIX' |
101 cmd = 'RADIX -n524288 -p' + str(options.numcpus) | 101 cmd = ['RADIX', '-n524288', '-p', str(options.numcpus)] |
102 cwd = options.rootdir + '/kernels/radix' 103 104class Barnes(LiveProcess): 105 executable = options.rootdir + '/apps/barnes/BARNES' | 102 cwd = options.rootdir + '/kernels/radix' 103 104class Barnes(LiveProcess): 105 executable = options.rootdir + '/apps/barnes/BARNES' |
106 cmd = 'BARNES' | 106 cmd = ['BARNES'] |
107 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus) 108 cwd = options.rootdir + '/apps/barnes' 109 110class FMM(LiveProcess): 111 executable = options.rootdir + '/apps/fmm/FMM' | 107 input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus) 108 cwd = options.rootdir + '/apps/barnes' 109 110class FMM(LiveProcess): 111 executable = options.rootdir + '/apps/fmm/FMM' |
112 cmd = 'FMM' | 112 cmd = ['FMM'] |
113 if str(options.numcpus) == '1': 114 input = options.rootdir + '/apps/fmm/inputs/input.2048' 115 else: 116 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus) 117 cwd = options.rootdir + '/apps/fmm' 118 119class Ocean_contig(LiveProcess): 120 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN' | 113 if str(options.numcpus) == '1': 114 input = options.rootdir + '/apps/fmm/inputs/input.2048' 115 else: 116 input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus) 117 cwd = options.rootdir + '/apps/fmm' 118 119class Ocean_contig(LiveProcess): 120 executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN' |
121 cmd = 'OCEAN -p' + str(options.numcpus) | 121 cmd = ['OCEAN', '-p', str(options.numcpus)] |
122 cwd = options.rootdir + '/apps/ocean/contiguous_partitions' 123 124class Ocean_noncontig(LiveProcess): 125 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN' | 122 cwd = options.rootdir + '/apps/ocean/contiguous_partitions' 123 124class Ocean_noncontig(LiveProcess): 125 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN' |
126 cmd = 'OCEAN -p' + str(options.numcpus) | 126 cmd = ['OCEAN', '-p', str(options.numcpus)] |
127 cwd = options.rootdir + '/apps/ocean/non_contiguous_partitions' 128 129class Raytrace(LiveProcess): 130 executable = options.rootdir + '/apps/raytrace/RAYTRACE' | 127 cwd = options.rootdir + '/apps/ocean/non_contiguous_partitions' 128 129class Raytrace(LiveProcess): 130 executable = options.rootdir + '/apps/raytrace/RAYTRACE' |
131 cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \ 132 + options.rootdir + '/apps/raytrace/inputs/teapot.env' | 131 cmd = ['RAYTRACE', '-p', str(options.numcpus), 132 options.rootdir + '/apps/raytrace/inputs/teapot.env'] |
133 cwd = options.rootdir + '/apps/raytrace' 134 135class Water_nsquared(LiveProcess): 136 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED' | 133 cwd = options.rootdir + '/apps/raytrace' 134 135class Water_nsquared(LiveProcess): 136 executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED' |
137 cmd = 'WATER-NSQUARED' | 137 cmd = ['WATER-NSQUARED'] |
138 if options.numcpus==1: 139 input = options.rootdir + '/apps/water-nsquared/input' 140 else: 141 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus) 142 cwd = options.rootdir + '/apps/water-nsquared' 143 144class Water_spatial(LiveProcess): 145 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL' | 138 if options.numcpus==1: 139 input = options.rootdir + '/apps/water-nsquared/input' 140 else: 141 input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus) 142 cwd = options.rootdir + '/apps/water-nsquared' 143 144class Water_spatial(LiveProcess): 145 executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL' |
146 cmd = 'WATER-SPATIAL' | 146 cmd = ['WATER-SPATIAL'] |
147 if options.numcpus==1: 148 input = options.rootdir + '/apps/water-spatial/input' 149 else: 150 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus) 151 cwd = options.rootdir + '/apps/water-spatial' 152 153# -------------------- 154# Base L1 Cache Definition --- 130 unchanged lines hidden --- | 147 if options.numcpus==1: 148 input = options.rootdir + '/apps/water-spatial/input' 149 else: 150 input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus) 151 cwd = options.rootdir + '/apps/water-spatial' 152 153# -------------------- 154# Base L1 Cache Definition --- 130 unchanged lines hidden --- |