|
OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 | |
3 # Script assumed to be run in native_client/ | |
4 if [[ $(pwd) != */native_client ]]; then | |
5 echo "ERROR: must be run in native_client!" | |
6 exit 1 | |
7 fi | |
8 | |
9 set -x | |
10 set -e | |
11 set -u | |
12 | |
13 ###################################################################### | |
14 # SCRIPT CONFIG | |
15 ###################################################################### | |
16 | |
17 CLOBBER=${CLOBBER:-yes} | |
18 SCONS_COMMON="./scons --mode=opt-linux bitcode=1 -j8" | |
19 SPEC_HARNESS=${SPEC_HARNESS:-/home/chrome-bot/cpu2000-redhat64-ia32} | |
20 SETUPS="SetupPnaclArmOpt SetupPnaclX8632Opt SetupPnaclX8664Opt \ | |
21 SetupPnaclTranslatorX8632Opt SetupPnaclTranslatorX8664Opt" | |
22 | |
23 # Rough test running time classification for ARM which is our bottleneck | |
24 FAST_ARM="176.gcc 179.art 181.mcf 186.crafty 197.parser 254.gap 255.vortex 300.t wolf" | |
25 MEDIUM_ARM="164.gzip 175.vpr 252.eon 256.bzip2" | |
26 SLOW_ARM="177.mesa 183.equake 188.ammp 253.perlbmk" | |
27 | |
28 TestsToBuild() { | |
29 local setup=$1 | |
30 case ${setup} in | |
31 SetupPnaclArmOpt) | |
32 # we expect arm to diverge | |
33 echo train ${FAST_ARM} 252.eon | |
34 ;; | |
35 SetupPnaclTranslator*) | |
36 echo train 176.gcc | |
37 ;; | |
38 *) | |
39 echo ${FAST_ARM} 252.eon | |
40 ;; | |
41 esac | |
42 } | |
43 | |
44 TestsToRun() { | |
45 local setup=$1 | |
46 case ${setup} in | |
47 SetupPnaclArmOpt) | |
48 # we expect arm to diverge | |
49 echo ${FAST_ARM} 252.eon | |
50 ;; | |
51 SetupPnaclTranslator*) | |
52 echo train 176.gcc | |
53 ;; | |
54 *) | |
55 echo ${FAST_ARM} 252.eon | |
56 ;; | |
57 esac | |
58 } | |
59 | |
60 ###################################################################### | |
61 # SCRIPT ACTION | |
62 ###################################################################### | |
63 | |
64 if [ "${CLOBBER}" == "yes" ] ; then | |
65 echo @@@BUILD_STEP clobber@@@ | |
66 rm -rf scons-out toolchain compiler hg ../xcodebuild ../sconsbuild ../out \ | |
67 src/third_party/nacl_sdk/arm-newlib | |
68 | |
69 echo @@@BUILD_STEP gclient_runhooks@@@ | |
70 gclient runhooks --force | |
71 fi | |
72 | |
73 for platform in arm x86-32 x86-64 ; do | |
74 echo @@@BUILD_STEP scons sel_ldr [${platform}]@@@ | |
75 ${SCONS_COMMON} platform=${platform} sel_ldr sel_universal | |
76 done | |
77 | |
78 cd tests/spec2k/ | |
79 | |
80 | |
81 for setup in ${SETUPS}; do | |
82 echo @@@BUILD_STEP spec2k build [${setup}] [train]@@@ | |
83 ./run_all.sh CleanBenchmarks | |
jvoung - send to chromium...
2011/03/17 22:17:32
CleanBenchmarks and PopulateFromSpecHarness can al
robertm
2011/03/17 22:26:03
The time savings were not very big - will leave as
| |
84 ./run_all.sh PopulateFromSpecHarness ${SPEC_HARNESS} | |
85 ./run_all.sh BuildBenchmarks 0 ${setup} $(TestsToBuild ${setup}) | |
jvoung - send to chromium...
2011/03/17 22:17:32
did you want to specify some parallelism with MAKE
robertm
2011/03/17 22:26:03
I was debating where to put the MAKEOPTS=-j8
ende
| |
86 | |
87 echo @@@BUILD_STEP spec2k run [${setup}] [train]@@@ | |
88 ./run_all.sh RunBenchmarks ${setup} train $(TestsToRun ${setup}) | |
89 done | |
OLD | NEW |