Configs: Fix for benchmarks that don't use getopt.

--HG--
extra : convert_revision : 6cbc7bb360c282821dd9da7814e0ac8b689f5d01
This commit is contained in:
Ali Saidi 2007-11-15 12:58:06 -05:00
parent 185f0eb134
commit 0896b5b897

View file

@ -78,7 +78,7 @@ if not options.numcpus:
class Cholesky(LiveProcess): class Cholesky(LiveProcess):
cwd = options.rootdir + '/kernels/cholesky' cwd = options.rootdir + '/kernels/cholesky'
executable = options.rootdir + '/kernels/cholesky/CHOLESKY' executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
cmd = ['CHOLESKY', '-p', str(options.numcpus), cmd = ['CHOLESKY', '-p' + str(options.numcpus),
options.rootdir + '/kernels/cholesky/inputs/tk23.O'] options.rootdir + '/kernels/cholesky/inputs/tk23.O']
class FFT(LiveProcess): class FFT(LiveProcess):
@ -128,7 +128,7 @@ class Ocean_noncontig(LiveProcess):
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' cwd = options.rootdir + '/apps/raytrace'
@ -252,10 +252,10 @@ elif options.benchmark == 'WaterNSquared':
elif options.benchmark == 'WaterSpatial': elif options.benchmark == 'WaterSpatial':
root.workload = Water_spatial() root.workload = Water_spatial()
else: else:
panic("The --benchmark environment variable was set to something" \ print >> sys.stderr, """The --benchmark environment variable was set to something improper.
+" improper.\nUse Cholesky, FFT, LUContig, LUNoncontig, Radix" \ Use Cholesky, FFT, LUContig, LUNoncontig, Radix, Barnes, FMM, OceanContig,
+", Barnes, FMM, OceanContig,\nOceanNoncontig, Raytrace," \ OceanNoncontig, Raytrace, WaterNSquared, or WaterSpatial"""
+" WaterNSquared, or WaterSpatial\n") sys.exit(1)
# -------------------- # --------------------
# Assign the workload to the cpus # Assign the workload to the cpus