Changeset 144
- Timestamp:
- 05/31/07 13:53:30
- Files:
-
- guts_npb/guts_npb.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
guts_npb/guts_npb.sh
r137 r144 9 9 10 10 # COMPILE -- NAS NPB 11 if [ $# -ne 2 ]; then11 if test $# -ne 2 ; then 12 12 echo "Usage: ./guts_npb.sh [NP] [CLASS]" 13 13 echo "for example --> ./guts_npb.sh 2 W" … … 16 16 make CLASS=$1 NP=$2 >>compile.out 2>compile.errout 17 17 18 if [ $? -eq 0 ]; then18 if test $? -eq 0 ; then 19 19 echo "Compilation was SUCCESSFUL for the kernel MG Class [$2]" 20 20 echo "Now the kernel will be run for ${NP} threads ..." … … 24 24 exe_output=`$RUN` 25 25 if [ $? -eq 0 ] ; then 26 echo -e"TEST \033[34m\033[1mPASSED\033[0m for the kernel CLASS [$2]"26 printf "TEST \033[34m\033[1mPASSED\033[0m for the kernel CLASS [$2]" 27 27 echo $exe_output 28 28 else 29 echo -e"TEST \033[31m\033[1mFAILED\033[0m for the kernel CLASS [$2]"29 printf "TEST \033[31m\033[1mFAILED\033[0m for the kernel CLASS [$2]" 30 30 echo $exe_output 31 31 fi 32 33 32 else 34 33 echo "COMPILER ERROR: The kernel NAS-MG cannot be compiled" 35 34 echo "The kernel will not be run!!!" 36 35 fi 37 38 36 fi 39 40 41
