Changeset 143
- Timestamp:
- 05/30/07 17:59:38
- Files:
-
- guts_collectives/guts_collectives.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
guts_collectives/guts_collectives.sh
r131 r143 14 14 15 15 # Initial cleanup 16 if [ -e units.passed ]; then16 if test -f units.passed; then 17 17 rm -f units.passed 18 18 fi 19 19 20 if [ -e units.notpassed ]; then20 if test -f units.notpassed; then 21 21 rm -f units.notpassed 22 22 fi 23 23 24 echo -ne"\n\n"25 echo -e "_______________ Script for compiling and running GUTS _______________\n"24 printf "\n\n" 25 printf "_______________ Script for compiling and running GUTS _______________\n\n" 26 26 27 27 NP=$1 … … 29 29 30 30 echo "Running the testing suite for ${NP} threads" 31 echo -ne"\n"31 printf "\n" 32 32 33 33 UPCC=upcc 34 34 35 35 for UNIT in `cat ${UNITS}`; do 36 echo -e "--------------> Working on unit -- $UNIT\n"36 printf ">--------------> Working on unit -- $UNIT\n" 37 37 38 38 build_output=`$UPCC upc_collective.o $UNIT.c -o $UNIT` 39 39 40 if [ $? -eq 0 ]; then40 if test $? -eq 0; then 41 41 echo "Compilation was SUCCESSFUL for the unit [${UNIT}]" 42 42 echo "Now the unit [${UNIT}] will be run for ${NP} threads ..." … … 44 44 echo $RUN 45 45 exe_output=`$RUN` 46 if [ $? -eq 0 ]; then46 if test $? -eq 0 ; then 47 47 echo $exe_output 48 48 else … … 57 57 58 58 `rm -f ${UNIT}.o ${UNIT} ${UNIT}.*out` 59 echo -ne"\n"60 echo -e "===============================================================================\n"59 printf "\n" 60 printf "===============================================================================\n\n" 61 61 62 62 done
