bart | 191a307 | 2008-09-08 18:39:38 +0000 | [diff] [blame] | 1 | |
| 2 | # Specifics for the Georgia Tech Cellbuzz cluster (Fedora Core release 6 on the host |
| 3 | # and IBM BladeCenter QS20 target). |
| 4 | # See also http://wiki.cc.gatech.edu/cellbuzz/index.php/Main_Page. |
bart | fcadb00 | 2008-09-11 15:03:59 +0000 | [diff] [blame] | 5 | # |
| 6 | # Note: please keep in mind that the default shell (a.o. used by cron) on the |
| 7 | # Georgia Tech Cellbuzz cluster is tcsh. Any shell code must be suitable for |
| 8 | # sh, bash and tcsh. As an example, tcsh understands ">&" but not "2>&1". |
bart | 191a307 | 2008-09-08 18:39:38 +0000 | [diff] [blame] | 9 | |
bart | aa6dd81 | 2009-05-01 06:54:43 +0000 | [diff] [blame] | 10 | ABT_DETAILS="cellbuzz, ppc64, Fedora 9, cross" |
| 11 | CROSS_PATH="/opt/cell/toolchain/bin" |
| 12 | ABT_CONFIGURE_OPTIONS="--build=x86_64-linux-gnu --host=powerpc64-unknown-linux --target=powerpc64-unknown-linux STRIP=${CROSS_PATH}/ppu-strip CC=${CROSS_PATH}/ppu-gcc CPP='${CROSS_PATH}/ppu-gcc -E' CXX=${CROSS_PATH}/ppu-g++ RANLIB=${CROSS_PATH}/ppu-ranlib CCAS=${CROSS_PATH}/ppu-gcc" |
bart | 191a307 | 2008-09-08 18:39:38 +0000 | [diff] [blame] | 13 | ABT_RUN_REGTEST="cellbuzz_run_regtest" |
| 14 | ABT_JOBS=3 |
| 15 | |
| 16 | cellbuzz_run_regtest() { |
| 17 | cd valgrind || return $? |
bart | 6ec6603 | 2008-09-10 09:07:52 +0000 | [diff] [blame] | 18 | rm -f regtest-output.txt |
bart | aa6dd81 | 2009-05-01 06:54:43 +0000 | [diff] [blame] | 19 | jobid=`echo "{ cd $PWD && perl tests/vg_regtest --all; } >& $PWD/regtest-output.txt" | qsub` |
bart | 191a307 | 2008-09-08 18:39:38 +0000 | [diff] [blame] | 20 | echo "Job ID = ${jobid}" |
bart | aa6dd81 | 2009-05-01 06:54:43 +0000 | [diff] [blame] | 21 | while [ `qstat "${jobid}" 2>/dev/null | wc --lines` -gt 0 ] |
bart | 191a307 | 2008-09-08 18:39:38 +0000 | [diff] [blame] | 22 | do |
| 23 | sleep 10 |
| 24 | done |
| 25 | cat regtest-output.txt |
| 26 | } |