Mercurial > pygar
comparison scripts/setup-mit-6.375-bmark-audio-core @ 47:97d1959f7c5c pygar svn.48
[svn r48] changed sctipt to use our own programs, changed rlp.wav and rlp1.wav to be shorter
author | rlm |
---|---|
date | Wed, 05 May 2010 13:23:58 -0400 |
parents | 7ac38b0f93fa |
children |
comparison
equal
deleted
inserted
replaced
46:adcfa79d2c67 | 47:97d1959f7c5c |
---|---|
68 print "BMARK: $bmark\n"; | 68 print "BMARK: $bmark\n"; |
69 print "SRC: $srcdir\n"; | 69 print "SRC: $srcdir\n"; |
70 print "DST: $dstdir\n"; | 70 print "DST: $dstdir\n"; |
71 print "BASE: $basedir\n"; | 71 print "BASE: $basedir\n"; |
72 | 72 |
73 $pygarRoot = "$srcdir/.."; | |
74 | |
75 | |
73 if (! defined($group)) { | 76 if (! defined($group)) { |
74 $group = $bmark; | 77 $group = $bmark; |
75 } | 78 } |
76 | 79 |
77 chdir($dstdir) or ErrorExit("Failed to cd to $dstdir"); | 80 chdir($dstdir) or ErrorExit("Failed to cd to $dstdir"); |
85 my $src_prog; | 88 my $src_prog; |
86 | 89 |
87 mkdir("program.${context}") or ErrorExit("Failed to make program directory"); | 90 mkdir("program.${context}") or ErrorExit("Failed to make program directory"); |
88 chdir("program.${context}") or ErrorExit("Failed to cd to program directory"); | 91 chdir("program.${context}") or ErrorExit("Failed to cd to program directory"); |
89 | 92 |
93 #print "***********************\n\n$benchmark_root --- ${benchmark_root}\n\n******************************\n"; | |
94 | |
90 if (defined($binary)) { | 95 if (defined($binary)) { |
91 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${binary}"; | 96 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${binary}"; |
92 } | 97 } |
98 | |
99 elsif (-f "$pygarRoot/benchProgs/${bmark}.${isa}.vmh"){ | |
100 print"\n*******************\n rlm:using speciel Pygar program\n**************************\n"; | |
101 $src_prog = "$pygarRoot/benchProgs/${bmark}.${isa}.vmh";} | |
102 | |
93 elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin") { | 103 elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin") { |
94 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin"; | 104 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin"; |
95 } | 105 } |
96 elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh") { | 106 elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh") { |
97 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh"; | 107 $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh"; |
98 } | 108 } |
109 | |
110 | |
111 | |
99 else { | 112 else { |
100 print STDERR "Can't find binary in ${benchmark_root}/hasim/${isa}/${group}\n"; | 113 print STDERR "Can't find binary in ${benchmark_root}/hasim/${isa}/${group}\n"; |
101 exit(1); | 114 exit(1); |
102 } | 115 } |
103 | 116 |