Fix the splash2 run script

--HG--
extra : convert_revision : 2b5f6718ac93d3d1b9b1d1b290f1ff5fa10cd0d8
This commit is contained in:
Ron Dreslinski 2007-04-23 16:03:53 -04:00
parent 3eb4ba3abb
commit c47804002a

View file

@ -1,4 +1,4 @@
# Copyright (c) 2005-2006 The Regents of The University of Michigan # Copyright (c) 2005-2007 The Regents of The University of Michigan
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -60,7 +60,7 @@ parser.add_option("--l2size",
parser.add_option("--l2latency", parser.add_option("--l2latency",
default = 10) default = 10)
parser.add_option("--rootdir", parser.add_option("--rootdir",
help="ROot directory of Splash2", help="Root directory of Splash2",
default="/dist/splash2/codes") default="/dist/splash2/codes")
parser.add_option("-b", "--benchmark", parser.add_option("-b", "--benchmark",
help="Splash 2 benchmark to run") help="Splash 2 benchmark to run")
@ -79,59 +79,79 @@ if not options.numcpus:
# Define Splash2 Benchmarks # Define Splash2 Benchmarks
# ==================== # ====================
class Cholesky(LiveProcess): class Cholesky(LiveProcess):
executable = options.rootdir + '/kernels/cholesky/CHOLESKY' cwd = options.rootdir + '/kernels/cholesky'
cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\ executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
+ options.rootdir + '/kernels/cholesky/inputs/tk23.O' cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\
+ options.rootdir + '/kernels/cholesky/inputs/tk23.O'
class FFT(LiveProcess): class FFT(LiveProcess):
executable = options.rootdir + '/kernels/fft/FFT' cwd = options.rootdir + '/kernels/fft'
cmd = 'FFT -p' + str(options.numcpus) + ' -m18' executable = options.rootdir + '/kernels/fft/FFT'
cmd = 'FFT -p' + str(options.numcpus) + ' -m18'
class LU_contig(LiveProcess): class LU_contig(LiveProcess):
executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU' executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
cmd = 'LU -p' + str(options.numcpus) cmd = 'LU -p' + str(options.numcpus)
cwd = options.rootdir + '/kernels/lu/contiguous_blocks'
class LU_noncontig(LiveProcess): class LU_noncontig(LiveProcess):
executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU' executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
cmd = 'LU -p' + str(options.numcpus) cmd = 'LU -p' + str(options.numcpus)
cwd = options.rootdir + '/kernels/lu/non_contiguous_blocks'
class Radix(LiveProcess): class Radix(LiveProcess):
executable = options.rootdir + '/kernels/radix/RADIX' executable = options.rootdir + '/kernels/radix/RADIX'
cmd = 'RADIX -n524288 -p' + str(options.numcpus) cmd = 'RADIX -n524288 -p' + str(options.numcpus)
cwd = options.rootdir + '/kernels/radix'
class Barnes(LiveProcess): class Barnes(LiveProcess):
executable = options.rootdir + '/apps/barnes/BARNES' executable = options.rootdir + '/apps/barnes/BARNES'
cmd = 'BARNES' cmd = 'BARNES'
input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus) input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/barnes'
class FMM(LiveProcess): class FMM(LiveProcess):
executable = options.rootdir + '/apps/fmm/FMM' executable = options.rootdir + '/apps/fmm/FMM'
cmd = 'FMM' cmd = 'FMM'
if str(options.numcpus) == '1':
input = options.rootdir + '/apps/fmm/inputs/input.2048'
else:
input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus) input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/fmm'
class Ocean_contig(LiveProcess): class Ocean_contig(LiveProcess):
executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN' executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
cmd = 'OCEAN -p' + str(options.numcpus) cmd = 'OCEAN -p' + str(options.numcpus)
cwd = options.rootdir + '/apps/ocean/contiguous_partitions'
class Ocean_noncontig(LiveProcess): class Ocean_noncontig(LiveProcess):
executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN' executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
cmd = 'OCEAN -p' + str(options.numcpus) cmd = 'OCEAN -p' + str(options.numcpus)
cwd = options.rootdir + '/apps/ocean/non_contiguous_partitions'
class Raytrace(LiveProcess): class Raytrace(LiveProcess):
executable = options.rootdir + '/apps/raytrace/RAYTRACE' executable = options.rootdir + '/apps/raytrace/RAYTRACE'
cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \ cmd = 'RAYTRACE -p' + str(options.numcpus) + ' ' \
+ options.rootdir + 'apps/raytrace/inputs/teapot.env' + options.rootdir + '/apps/raytrace/inputs/teapot.env'
cwd = options.rootdir + '/apps/raytrace'
class Water_nsquared(LiveProcess): class Water_nsquared(LiveProcess):
executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED' executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
cmd = 'WATER-NSQUARED' cmd = 'WATER-NSQUARED'
if options.numcpus==1:
input = options.rootdir + '/apps/water-nsquared/input'
else:
input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus) input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/water-nsquared'
class Water_spatial(LiveProcess): class Water_spatial(LiveProcess):
executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL' executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
cmd = 'WATER-SPATIAL' cmd = 'WATER-SPATIAL'
if options.numcpus==1:
input = options.rootdir + '/apps/water-spatial/input'
else:
input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus) input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/water-spatial'
# -------------------- # --------------------
# Base L1 Cache Definition # Base L1 Cache Definition