Lines Matching refs:self

78     def __init__(self, isa, os, input_set):
79 if not hasattr(self.__class__, 'name'):
80 self.name = self.__class__.__name__
82 if not hasattr(self.__class__, 'binary'):
83 self.binary = self.name
85 if not hasattr(self.__class__, 'args'):
86 self.args = []
88 if not hasattr(self.__class__, 'output'):
89 self.output = '%s.out' % self.name
91 if not hasattr(self.__class__, 'simpoint'):
92 self.simpoint = None
95 func = getattr(self.__class__, input_set)
99 (self.name, input_set))
101 executable = joinpath(spec_dist, 'binaries', isa, os, self.binary)
104 self.executable = executable
107 data_dir = joinpath(spec_dist, 'data', self.name)
114 self.input_set = input_set
119 self.inputs_dir = [ inputs_dir ]
121 self.inputs_dir += [ joinpath(all_dir, 'input') ]
123 self.outputs_dir = outputs_dir
125 if not hasattr(self.__class__, 'stdin'):
126 self.stdin = joinpath(inputs_dir, '%s.in' % self.name)
127 if not isfile(self.stdin):
128 self.stdin = None
130 if not hasattr(self.__class__, 'stdout'):
131 self.stdout = joinpath(outputs_dir, '%s.out' % self.name)
132 if not isfile(self.stdout):
133 self.stdout = None
135 func(self, isa, os)
137 def makeProcessArgs(self, **kwargs):
140 process_args['cmd'] = [ self.name ] + self.args
141 process_args['executable'] = self.executable
142 if self.stdin:
143 process_args['input'] = self.stdin
144 if self.stdout:
145 process_args['output'] = self.stdout
146 if self.simpoint:
147 process_args['simpoint'] = self.simpoint
153 def makeProcess(self, **kwargs):
154 process_args = self.makeProcessArgs(**kwargs)
167 for d in self.inputs_dir:
173 def __str__(self):
174 return self.name
177 def ref(self, isa, os): pass
178 def test(self, isa, os): pass
179 def train(self, isa, os): pass
182 def smred(self, isa, os): pass
183 def mdred(self, isa, os): pass
184 def lgred(self, isa, os): pass
209 def test(self, isa, os):
210 self.args = [ '-scanfile', 'c756hel.in',
218 self.output = 'test.out'
220 def train(self, isa, os):
221 self.args = [ '-scanfile', 'c756hel.in',
229 self.output = 'train.out'
231 def lgred(self, isa, os):
232 self.args = ['-scanfile', 'c756hel.in',
240 self.output = 'lgred.out'
244 def ref(self, isa, os):
245 self.args = [ '-scanfile', 'c756hel.in',
254 self.output = 'ref.1.out'
255 self.simpoint = 340*100E6
258 def ref(self, isa, os):
259 self.args = [ '-scanfile', 'c756hel.in',
268 self.output = 'ref.2.out'
269 self.simpoint = 365*100E6
277 def lgred(self, isa, os): pass
309 def __set_args(self, frames):
310 self.args = [ '-frames', frames, '-meshfile', '%s.in' % self.name,
311 '-ppmfile', '%s.ppm' % self.name ]
313 def test(self, isa, os):
314 self.__set_args('10')
316 def train(self, isa, os):
317 self.__set_args('500')
319 def ref(self, isa, os):
320 self.__set_args('1000')
321 self.simpoint = 1135*100E6
323 def lgred(self, isa, os):
324 self.__set_args('1')
338 def lgred(self, isa, os): pass
352 def lgred(self, isa, os): pass
359 def test(self, isa, os):
360 self.args = [ 'input.random' ]
362 def train(self, isa, os):
363 self.args = [ 'input.compressed' ]
366 def ref(self, isa, os):
367 self.simpoint = 977*100E6
368 self.args = [ 'input.source', '58' ]
370 def lgred(self, isa, os):
371 self.args = [ 'input.source', '1' ]
374 def ref(self, isa, os):
375 self.simpoint = 718*100E6
376 self.args = [ 'input.graphic', '58' ]
378 def lgred(self, isa, os):
379 self.args = [ 'input.graphic', '1' ]
382 def ref(self, isa, os):
383 self.simpoint = 458*100E6
384 self.args = [ 'input.program', '58' ]
386 def lgred(self, isa, os):
387 self.args = [ 'input.program', '1' ]
423 def __set_args(self, size):
424 self.args = [ '-l', './', '-q', '-m', size ]
426 def test(self, isa, os):
427 self.__set_args('64M')
429 def train(self, isa, os):
430 self.__set_args('128M')
432 def ref(self, isa, os):
433 self.__set_args('192M')
434 self.simpoint = 674*100E6
436 def lgred(self, isa, os):
437 self.__set_args('64M')
439 def mdred(self, isa, os):
440 self.__set_args('64M')
442 def smred(self, isa, os):
443 self.__set_args('64M')
450 def test(self, isa, os):
451 self.args = [ 'cccp.i', '-o', 'cccp.s' ]
453 def train(self, isa, os):
454 self.args = [ 'cp-decl.i', '-o', 'cp-decl.s' ]
456 def smred(self, isa, os):
457 self.args = [ 'c-iterate.i', '-o', 'c-iterate.s' ]
459 def mdred(self, isa, os):
460 self.args = [ 'rdlanal.i', '-o', 'rdlanal.s' ]
462 def lgred(self, isa, os):
463 self.args = [ 'cp-decl.i', '-o', 'cp-decl.s' ]
466 def ref(self, isa, os):
467 self.simpoint = 389*100E6
468 self.args = [ '166.i', '-o', '166.s' ]
471 def ref(self, isa, os):
472 self.simpoint = 736*100E6
473 self.args = [ '200.i', '-o', '200.s' ]
476 def ref(self, isa, os):
477 self.simpoint = 36*100E6
478 self.args = [ 'expr.i', '-o', 'expr.s' ]
481 def ref(self, isa, os):
482 self.simpoint = 4*100E6
483 self.args = [ 'integrate.i', '-o', 'integrate.s' ]
486 def ref(self, isa, os):
487 self.simpoint = 207*100E6
488 self.args = [ 'scilab.i', '-o', 'scilab.s' ]
495 def test(self, isa, os):
496 self.args = [ 'input.compressed', '2' ]
498 def train(self, isa, os):
499 self.args = [ 'input.combined', '32' ]
502 def ref(self, isa, os):
503 self.simpoint = 334*100E6
504 self.args = [ 'input.source', '1' ]
505 def smred(self, isa, os):
506 self.args = [ 'input.source', '1' ]
507 def mdred(self, isa, os):
508 self.args = [ 'input.source', '1' ]
509 def lgred(self, isa, os):
510 self.args = [ 'input.source', '1' ]
513 def ref(self, isa, os):
514 self.simpoint = 265*100E6
515 self.args = [ 'input.log', '60' ]
516 def smred(self, isa, os):
517 self.args = [ 'input.log', '1' ]
518 def mdred(self, isa, os):
519 self.args = [ 'input.log', '1' ]
520 def lgred(self, isa, os):
521 self.args = [ 'input.log', '1' ]
524 def ref(self, isa, os):
525 self.simpoint = 653*100E6
526 self.args = [ 'input.graphic', '60' ]
527 def smred(self, isa, os):
528 self.args = [ 'input.graphic', '1' ]
529 def mdred(self, isa, os):
530 self.args = [ 'input.graphic', '1' ]
531 def lgred(self, isa, os):
532 self.args = [ 'input.graphic', '1' ]
535 def ref(self, isa, os):
536 self.simpoint = 623*100E6
537 self.args = [ 'input.random', '60' ]
538 def smred(self, isa, os):
539 self.args = [ 'input.random', '1' ]
540 def mdred(self, isa, os):
541 self.args = [ 'input.random', '1' ]
542 def lgred(self, isa, os):
543 self.args = [ 'input.random', '1' ]
546 def ref(self, isa, os):
547 self.simpoint = 1189*100E6
548 self.args = [ 'input.program', '60' ]
549 def smred(self, isa, os):
550 self.args = [ 'input.program', '1' ]
551 def mdred(self, isa, os):
552 self.args = [ 'input.program', '1' ]
553 def lgred(self, isa, os):
554 self.args = [ 'input.program', '1' ]
575 def test(self, isa, os):
576 self.args = [ '-I.', '-I', 'lib', 'test.pl' ]
577 self.stdin = 'test.in'
580 def ref(self, isa, os):
581 self.simpoint = 141*100E6
582 self.args = [ '-I', 'lib', 'diffmail.pl', '2', '550', '15', '24',
585 def train(self, isa, os):
586 self.args = [ '-I', 'lib', 'diffmail.pl', '2', '350', '15', '24',
590 def train(self, isa, os):
591 self.args = [ '-I.', '-I', 'lib', 'scrabbl.pl' ]
592 self.stdin = 'scrabbl.in'
595 def ref(self, isa, os):
596 self.simpoint = 11*100E6
597 self.args = [ '-I', 'lib', 'makerand.pl' ]
599 def lgred(self, isa, os):
600 self.args = [ '-I.', '-I', 'lib', 'lgred.makerand.pl' ]
602 def mdred(self, isa, os):
603 self.args = [ '-I.', '-I', 'lib', 'mdred.makerand.pl' ]
605 def smred(self, isa, os):
606 self.args = [ '-I.', '-I', 'lib', 'smred.makerand.pl' ]
609 def ref(self, isa, os):
610 self.simpoint = 5*100E6
611 self.args = [ '-I', 'lib', 'perfect.pl', 'b', '3', 'm', '4' ]
613 def train(self, isa, os):
614 self.args = [ '-I', 'lib', 'perfect.pl', 'b', '3' ]
617 def ref(self, isa, os):
618 self.simpoint = 405*100E6
619 self.args = [ '-I', 'lib', 'splitmail.pl', '850', '5', '19',
623 def ref(self, isa, os):
624 self.args = [ '-I', 'lib', 'splitmail.pl', '704', '12', '26',
628 def ref(self, isa, os):
629 self.args = [ '-I', 'lib', 'splitmail.pl', '535', '13', '25',
633 def ref(self, isa, os):
634 self.args = [ '-I', 'lib', 'splitmail.pl', '957', '12', '23',
643 def test(self, isa, os):
644 self.args = [ 'test' ]
646 def train(self, isa, os):
647 self.args = [ 'train' ]
649 def ref(self, isa, os):
650 self.simpoint = 1066*100E6
651 self.args = [ 'ref' ]
653 def smred(self, isa, os):
654 self.args = [ 'smred' ]
656 def mdred(self, isa, os):
657 self.args = [ 'mdred' ]
659 def lgred(self, isa, os):
660 self.args = [ 'lgred' ]
668 def __init__(self, isa, os, input_set):
670 self.endian = 'lendian'
672 self.endian = 'bendian'
676 super(vortex, self).__init__(isa, os, input_set)
678 def test(self, isa, os):
679 self.args = [ '%s.raw' % self.endian ]
680 self.output = 'vortex.out'
682 def train(self, isa, os):
683 self.args = [ '%s.raw' % self.endian ]
684 self.output = 'vortex.out'
686 def smred(self, isa, os):
687 self.args = [ '%s.raw' % self.endian ]
688 self.output = 'vortex.out'
690 def mdred(self, isa, os):
691 self.args = [ '%s.raw' % self.endian ]
692 self.output = 'vortex.out'
694 def lgred(self, isa, os):
695 self.args = [ '%s.raw' % self.endian ]
696 self.output = 'vortex.out'
699 def ref(self, isa, os):
700 self.args = [ '%s1.raw' % self.endian ]
701 self.output = 'vortex1.out'
702 self.simpoint = 271*100E6
706 def ref(self, isa, os):
707 self.simpoint = 1024*100E6
708 self.args = [ '%s2.raw' % self.endian ]
709 self.output = 'vortex2.out'
712 def ref(self, isa, os):
713 self.simpoint = 564*100E6
714 self.args = [ '%s3.raw' % self.endian ]
715 self.output = 'vortex3.out'