Mercurial > pygar
changeset 70:bbd58fb592c9 pygar svn.71
[svn r71] better benchmarks
author | rlm |
---|---|
date | Wed, 12 May 2010 00:14:01 -0400 |
parents | 5c963ab14143 |
children | 86360c5ae9f2 |
files | config/bm/Pygar/fpga.cfx config/bm/Pygar/sim.cfx |
diffstat | 2 files changed, 91 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/bm/Pygar/fpga.cfx Wed May 12 00:14:01 2010 -0400 1.3 @@ -0,0 +1,47 @@ 1.4 +: # -*-Perl-*- 1.5 +eval 'exec perl -w "$0" ${1+"$@"}' 1.6 + if 0; 1.7 + 1.8 +## 1.9 +## Directory of hasim benchmarks 1.10 +## Remember to set this file as executable 1.11 + 1.12 +use Asim; 1.13 +use strict; 1.14 + 1.15 +my $gcfg = Asim::GenCFG->new(); 1.16 + 1.17 +my @tests = ( 1.18 + "thru"); 1.19 + 1.20 + 1.21 + 1.22 +my @bmarks = ("null", 1.23 + ); 1.24 + 1.25 +foreach my $bmark (@bmarks) { 1.26 + $gcfg->add(name => $bmark, 1.27 + tree => [ "benchmarks" ], 1.28 + setup => "tools/scripts/setup-bmark $bmark --contexts=0", 1.29 + feeder => "none", 1.30 + ccount => 800000, 1.31 + ); 1.32 + } 1.33 + 1.34 + 1.35 + 1.36 + 1.37 + 1.38 + 1.39 +foreach my $test (@tests) { 1.40 + $gcfg->add(name => $test, 1.41 + tree => [ "tests" ], 1.42 + setup => "scripts/setup-mit-6.375-bmark-audio-core --group instruction-tests --isa smips $test --data=../benchmarks/audio_processor_test/rlp.wav --linkto=../tools/audio_processor_test/null/checker", 1.43 + feeder => "vcs", 1.44 + feedflags => "program.0/${test}.smips.vmh", 1.45 + ccount => 800000, 1.46 + ); 1.47 +} 1.48 + 1.49 + 1.50 +$gcfg->action(@ARGV);
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/config/bm/Pygar/sim.cfx Wed May 12 00:14:01 2010 -0400 2.3 @@ -0,0 +1,44 @@ 2.4 +: # -*-Perl-*- 2.5 +eval 'exec perl -w "$0" ${1+"$@"}' 2.6 + if 0; 2.7 + 2.8 +## 2.9 +## Directory of hasim benchmarks 2.10 +## Remember to set this file as executable 2.11 + 2.12 +use Asim; 2.13 +use strict; 2.14 + 2.15 +my $gcfg = Asim::GenCFG->new(); 2.16 + 2.17 +my @networks = ( 2.18 + "net0", 2.19 + "net1" 2.20 + ); 2.21 + 2.22 +my @music = ( 2.23 + "train", 2.24 + "blah" 2.25 + ); 2.26 + 2.27 + 2.28 + 2.29 + 2.30 + 2.31 + 2.32 + 2.33 + 2.34 +foreach my $net (@networks) { 2.35 + foreach my $mus (@music){ 2.36 + 2.37 + $gcfg->add(name => "$net-$mus", 2.38 + tree => [ "tests-sim" ], 2.39 + setup => "pygar-benchmarks/setup/sim-benchmark-setup.pl --network=$net --music=$mus", 2.40 + feeder => "", 2.41 + feedflags => "", 2.42 + ccount => 800000, 2.43 + ); 2.44 + }} 2.45 + 2.46 + 2.47 +$gcfg->action(@ARGV);