run.py (5255:79825caee5fd) run.py (5256:723d4c11ac26)
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

--- 64 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'
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

--- 64 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),
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'
87 cmd = ['FFT', '-p', str(options.numcpus), '-m18']
88
89class LU_contig(LiveProcess):

--- 33 unchanged lines hidden (view full) ---

123
124class Ocean_noncontig(LiveProcess):
125 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
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'
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'
87 cmd = ['FFT', '-p', str(options.numcpus), '-m18']
88
89class LU_contig(LiveProcess):

--- 33 unchanged lines hidden (view full) ---

123
124class Ocean_noncontig(LiveProcess):
125 executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
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'
131 cmd = ['RAYTRACE', '-p', str(options.numcpus),
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'
137 cmd = ['WATER-NSQUARED']
138 if options.numcpus==1:
139 input = options.rootdir + '/apps/water-nsquared/input'

--- 107 unchanged lines hidden (view full) ---

247 root.workload = Ocean_noncontig()
248elif options.benchmark == 'Raytrace':
249 root.workload = Raytrace()
250elif options.benchmark == 'WaterNSquared':
251 root.workload = Water_nsquared()
252elif options.benchmark == 'WaterSpatial':
253 root.workload = Water_spatial()
254else:
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'
137 cmd = ['WATER-NSQUARED']
138 if options.numcpus==1:
139 input = options.rootdir + '/apps/water-nsquared/input'

--- 107 unchanged lines hidden (view full) ---

247 root.workload = Ocean_noncontig()
248elif options.benchmark == 'Raytrace':
249 root.workload = Raytrace()
250elif options.benchmark == 'WaterNSquared':
251 root.workload = Water_nsquared()
252elif options.benchmark == 'WaterSpatial':
253 root.workload = Water_spatial()
254else:
255 panic("The --benchmark environment variable was set to something" \
256 +" improper.\nUse Cholesky, FFT, LUContig, LUNoncontig, Radix" \
257 +", Barnes, FMM, OceanContig,\nOceanNoncontig, Raytrace," \
258 +" WaterNSquared, or WaterSpatial\n")
255 print >> sys.stderr, """The --benchmark environment variable was set to something improper.
256Use Cholesky, FFT, LUContig, LUNoncontig, Radix, Barnes, FMM, OceanContig,
257OceanNoncontig, Raytrace, WaterNSquared, or WaterSpatial"""
258 sys.exit(1)
259
260# --------------------
261# Assign the workload to the cpus
262# ====================
263
264for cpu in cpus:
265 cpu.workload = root.workload
266

--- 18 unchanged lines hidden ---
259
260# --------------------
261# Assign the workload to the cpus
262# ====================
263
264for cpu in cpus:
265 cpu.workload = root.workload
266

--- 18 unchanged lines hidden ---