Deleted Added
sdiff udiff text old ( 4555:7db37af44eb6 ) new ( 5361:e379019a1abd )
full compact
1# Copyright (c) 2006-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

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

80 self.binary = self.name
81
82 if not hasattr(self.__class__, 'args'):
83 self.args = []
84
85 if not hasattr(self.__class__, 'output'):
86 self.output = '%s.out' % self.name
87
88 try:
89 func = getattr(self.__class__, input_set)
90 except AttributeError:
91 raise AttributeError, \
92 'The benchmark %s does not have the %s input set' % \
93 (self.name, input_set)
94
95 executable = joinpath(spec_dist, 'binaries', isa, os, self.binary)

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

132 # set up default args for LiveProcess object
133 process_args = {}
134 process_args['cmd'] = [ self.name ] + self.args
135 process_args['executable'] = self.executable
136 if self.stdin:
137 process_args['input'] = self.stdin
138 if self.stdout:
139 process_args['output'] = self.stdout
140
141 # explicit keywords override defaults
142 process_args.update(kwargs)
143
144 return process_args
145
146 def makeLiveProcess(self, **kwargs):
147 process_args = self.makeLiveProcessArgs(**kwargs)
148
149 # figure out working directory: use m5's outdir unless
150 # overridden by LiveProcess's cwd param
151 cwd = process_args.get('cwd')
152 if not cwd:
153 from m5.main import options
154 cwd = options.outdir
155 process_args['cwd'] = cwd
156 if not isdir(cwd):
157 os.makedirs(cwd)
158 # copy input files to working directory
159 for d in self.inputs_dir:

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

174 def smred(self, isa, os): pass
175 def mdred(self, isa, os): pass
176 def lgred(self, isa, os): pass
177
178class ammp(MinneDefaultBenchmark):
179 name = 'ammp'
180 number = 188
181 lang = 'C'
182
183class applu(MinneDefaultBenchmark):
184 name = 'applu'
185 number = 173
186 lang = 'F77'
187
188class apsi(MinneDefaultBenchmark):
189 name = 'apsi'
190 number = 301
191 lang = 'F77'
192
193class art(DefaultBenchmark):
194 name = 'art'
195 number = 179
196 lang = 'C'
197
198 def test(self, isa, os):
199 self.args = [ '-scanfile', 'c756hel.in',

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

236 '-trainfile2', 'hc.img',
237 '-stride', '2',
238 '-startx', '110',
239 '-starty', '200',
240 '-endx', '160',
241 '-endy', '240',
242 '-objects', '10' ]
243 self.output = 'ref.1.out'
244
245class art470(art):
246 def ref(self, isa, os):
247 self.args = [ '-scanfile', 'c756hel.in',
248 '-trainfile1', 'a10.img',
249 '-trainfile2', 'hc.img',
250 '-stride', '2',
251 '-startx', '470',
252 '-starty', '140',
253 '-endx', '520',
254 '-endy', '180',
255 '-objects', '10' ]
256 self.output = 'ref.2.out'
257
258class equake(DefaultBenchmark):
259 name = 'equake'
260 number = 183
261 lang = 'C'
262
263 def lgred(self, isa, os): pass
264
265class facerec(MinneDefaultBenchmark):
266 name = 'facerec'
267 number = 187
268 lang = 'F'
269
270class fma3d(MinneDefaultBenchmark):
271 name = 'fma3d'
272 number = 191
273 lang = 'F'
274
275class galgel(MinneDefaultBenchmark):
276 name = 'galgel'
277 number = 178
278 lang = 'F'
279
280class lucas(MinneDefaultBenchmark):
281 name = 'lucas'
282 number = 189
283 lang = 'F'
284
285class mesa(Benchmark):
286 name = 'mesa'
287 number = 177
288 lang = 'C'
289 stdin = None
290
291 def __set_args(self, frames):
292 self.args = [ '-frames', frames, '-meshfile', '%s.in' % self.name,
293 '-ppmfile', '%s.ppm' % self.name ]
294
295 def test(self, isa, os):
296 self.__set_args('10')
297
298 def train(self, isa, os):
299 self.__set_args('500')
300
301 def ref(self, isa, os):
302 self.__set_args('1000')
303
304 def lgred(self, isa, os):
305 self.__set_args('1')
306
307class mgrid(MinneDefaultBenchmark):
308 name = 'mgrid'
309 number = 172
310 lang = 'F77'
311
312class sixtrack(DefaultBenchmark):
313 name = 'sixtrack'
314 number = 200
315 lang = 'F77'
316
317 def lgred(self, isa, os): pass
318
319class swim(MinneDefaultBenchmark):
320 name = 'swim'
321 number = 171
322 lang = 'F77'
323
324class wupwise(DefaultBenchmark):
325 name = 'wupwise'
326 number = 168
327 lang = 'F77'
328
329 def lgred(self, isa, os): pass
330
331class bzip2(DefaultBenchmark):
332 name = 'bzip2'
333 number = 256
334 lang = 'C'
335
336 def test(self, isa, os):
337 self.args = [ 'input.random' ]
338
339 def train(self, isa, os):
340 self.args = [ 'input.compressed' ]
341
342class bzip2_source(bzip2):
343 def ref(self, isa, os):
344 self.args = [ 'input.source', '58' ]
345
346 def lgred(self, isa, os):
347 self.args = [ 'input.source', '1' ]
348
349class bzip2_graphic(bzip2):
350 def ref(self, isa, os):
351 self.args = [ 'input.graphic', '58' ]
352
353 def lgred(self, isa, os):
354 self.args = [ 'input.graphic', '1' ]
355
356class bzip2_program(bzip2):
357 def ref(self, isa, os):
358 self.args = [ 'input.program', '58' ]
359
360 def lgred(self, isa, os):
361 self.args = [ 'input.program', '1' ]
362
363class crafty(MinneDefaultBenchmark):
364 name = 'crafty'
365 number = 186
366 lang = 'C'
367
368class eon(MinneDefaultBenchmark):
369 name = 'eon'
370 number = 252
371 lang = 'CXX'
372 stdin = None
373
374class eon_kajiya(eon):

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

381 args = [ 'chair.control.cook', 'chair.camera', 'chair.surfaces',
382 'chair.cook.ppm', 'ppm', 'pixels_out.cook' ]
383 output = 'cook_log.out'
384
385class eon_rushmeier(eon):
386 args = [ 'chair.control.rushmeier', 'chair.camera', 'chair.surfaces',
387 'chair.rushmeier.ppm', 'ppm', 'pixels_out.rushmeier' ]
388 output = 'rushmeier_log.out'
389
390class gap(DefaultBenchmark):
391 name = 'gap'
392 number = 254
393 lang = 'C'
394
395 def __set_args(self, size):
396 self.args = [ '-l', './', '-q', '-m', size ]
397
398 def test(self, isa, os):
399 self.__set_args('64M')
400
401 def train(self, isa, os):
402 self.__set_args('128M')
403
404 def ref(self, isa, os):
405 self.__set_args('192M')
406
407 def lgred(self, isa, os):
408 self.__set_args('64M')
409
410 def mdred(self, isa, os):
411 self.__set_args('64M')
412
413 def smred(self, isa, os):

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

430 def mdred(self, isa, os):
431 self.args = [ 'rdlanal.i', '-o', 'rdlanal.s' ]
432
433 def lgred(self, isa, os):
434 self.args = [ 'cp-decl.i', '-o', 'cp-decl.s' ]
435
436class gcc_166(gcc):
437 def ref(self, isa, os):
438 self.args = [ '166.i', '-o', '166.s' ]
439
440class gcc_200(gcc):
441 def ref(self, isa, os):
442 self.args = [ '200.i', '-o', '200.s' ]
443
444class gcc_expr(gcc):
445 def ref(self, isa, os):
446 self.args = [ 'expr.i', '-o', 'expr.s' ]
447
448class gcc_integrate(gcc):
449 def ref(self, isa, os):
450 self.args = [ 'integrate.i', '-o', 'integrate.s' ]
451
452class gcc_scilab(gcc):
453 def ref(self, isa, os):
454 self.args = [ 'scilab.i', '-o', 'scilab.s' ]
455
456class gzip(DefaultBenchmark):
457 name = 'gzip'
458 number = 164
459 lang = 'C'
460
461 def test(self, isa, os):
462 self.args = [ 'input.compressed', '2' ]
463
464 def train(self, isa, os):
465 self.args = [ 'input.combined', '32' ]
466
467class gzip_source(gzip):
468 def ref(self, isa, os):
469 self.args = [ 'input.source', '1' ]
470 def smred(self, isa, os):
471 self.args = [ 'input.source', '1' ]
472 def mdred(self, isa, os):
473 self.args = [ 'input.source', '1' ]
474 def lgred(self, isa, os):
475 self.args = [ 'input.source', '1' ]
476
477class gzip_log(gzip):
478 def ref(self, isa, os):
479 self.args = [ 'input.log', '60' ]
480 def smred(self, isa, os):
481 self.args = [ 'input.log', '1' ]
482 def mdred(self, isa, os):
483 self.args = [ 'input.log', '1' ]
484 def lgred(self, isa, os):
485 self.args = [ 'input.log', '1' ]
486
487class gzip_graphic(gzip):
488 def ref(self, isa, os):
489 self.args = [ 'input.graphic', '60' ]
490 def smred(self, isa, os):
491 self.args = [ 'input.graphic', '1' ]
492 def mdred(self, isa, os):
493 self.args = [ 'input.graphic', '1' ]
494 def lgred(self, isa, os):
495 self.args = [ 'input.graphic', '1' ]
496
497class gzip_random(gzip):
498 def ref(self, isa, os):
499 self.args = [ 'input.random', '60' ]
500 def smred(self, isa, os):
501 self.args = [ 'input.random', '1' ]
502 def mdred(self, isa, os):
503 self.args = [ 'input.random', '1' ]
504 def lgred(self, isa, os):
505 self.args = [ 'input.random', '1' ]
506
507class gzip_program(gzip):
508 def ref(self, isa, os):
509 self.args = [ 'input.program', '60' ]
510 def smred(self, isa, os):
511 self.args = [ 'input.program', '1' ]
512 def mdred(self, isa, os):
513 self.args = [ 'input.program', '1' ]
514 def lgred(self, isa, os):
515 self.args = [ 'input.program', '1' ]
516
517class mcf(MinneDefaultBenchmark):
518 name = 'mcf'
519 number = 181
520 lang = 'C'
521 args = [ 'mcf.in' ]
522
523class parser(MinneDefaultBenchmark):
524 name = 'parser'
525 number = 197
526 lang = 'C'
527 args = [ '2.1.dict', '-batch' ]
528
529class perlbmk(DefaultBenchmark):
530 name = 'perlbmk'
531 number = 253
532 lang = 'C'
533
534 def test(self, isa, os):
535 self.args = [ '-I.', '-I', 'lib', 'test.pl' ]
536 self.stdin = 'test.in'
537
538class perlbmk_diffmail(perlbmk):
539 def ref(self, isa, os):
540 self.args = [ '-I', 'lib', 'diffmail.pl', '2', '550', '15', '24',
541 '23', '100' ]
542
543 def train(self, isa, os):
544 self.args = [ '-I', 'lib', 'diffmail.pl', '2', '350', '15', '24',
545 '23', '150' ]
546
547class perlbmk_scrabbl(perlbmk):
548 def train(self, isa, os):
549 self.args = [ '-I.', '-I', 'lib', 'scrabbl.pl' ]
550 self.stdin = 'scrabbl.in'
551
552class perlbmk_makerand(perlbmk):
553 def ref(self, isa, os):
554 self.args = [ '-I', 'lib', 'makerand.pl' ]
555
556 def lgred(self, isa, os):
557 self.args = [ '-I.', '-I', 'lib', 'lgred.makerand.pl' ]
558
559 def mdred(self, isa, os):
560 self.args = [ '-I.', '-I', 'lib', 'mdred.makerand.pl' ]
561
562 def smred(self, isa, os):
563 self.args = [ '-I.', '-I', 'lib', 'smred.makerand.pl' ]
564
565class perlbmk_perfect(perlbmk):
566 def ref(self, isa, os):
567 self.args = [ '-I', 'lib', 'perfect.pl', 'b', '3', 'm', '4' ]
568
569 def train(self, isa, os):
570 self.args = [ '-I', 'lib', 'perfect.pl', 'b', '3' ]
571
572class perlbmk_splitmail1(perlbmk):
573 def ref(self, isa, os):
574 self.args = [ '-I', 'lib', 'splitmail.pl', '850', '5', '19',
575 '18', '1500' ]
576
577class perlbmk_splitmail2(perlbmk):
578 def ref(self, isa, os):
579 self.args = [ '-I', 'lib', 'splitmail.pl', '704', '12', '26',
580 '16', '836' ]
581

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

597
598 def test(self, isa, os):
599 self.args = [ 'test' ]
600
601 def train(self, isa, os):
602 self.args = [ 'train' ]
603
604 def ref(self, isa, os):
605 self.args = [ 'ref' ]
606
607 def smred(self, isa, os):
608 self.args = [ 'smred' ]
609
610 def mdred(self, isa, os):
611 self.args = [ 'mdred' ]
612

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

648 def lgred(self, isa, os):
649 self.args = [ '%s.raw' % self.endian ]
650 self.output = 'vortex.out'
651
652class vortex1(vortex):
653 def ref(self, isa, os):
654 self.args = [ '%s1.raw' % self.endian ]
655 self.output = 'vortex1.out'
656
657
658class vortex2(vortex):
659 def ref(self, isa, os):
660 self.args = [ '%s2.raw' % self.endian ]
661 self.output = 'vortex2.out'
662
663class vortex3(vortex):
664 def ref(self, isa, os):
665 self.args = [ '%s3.raw' % self.endian ]
666 self.output = 'vortex3.out'
667
668class vpr(MinneDefaultBenchmark):
669 name = 'vpr'
670 number = 175
671 lang = 'C'
672
673# not sure about vpr minnespec place.in
674class vpr_place(vpr):
675 args = [ 'net.in', 'arch.in', 'place.out', 'dum.out', '-nodisp',
676 '-place_only', '-init_t', '5', '-exit_t', '0.005',
677 '-alpha_t', '0.9412', '-inner_num', '2' ]
678 output = 'place_log.out'
679
680class vpr_route(vpr):
681 args = [ 'net.in', 'arch.in', 'place.in', 'route.out', '-nodisp',
682 '-route_only', '-route_chan_width', '15',
683 '-pres_fac_mult', '2', '-acc_fac', '1',
684 '-first_iter_pres_fac', '4', '-initial_pres_fac', '8' ]
685 output = 'route_log.out'
686
687all = [ ammp, applu, apsi, art110, art470, equake, facerec, fma3d, galgel,
688 lucas, mesa, mgrid, sixtrack, swim, wupwise, bzip2_source,

--- 19 unchanged lines hidden ---