| 99 | | |
|---|
| 100 | | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=0 -I../include \ |
|---|
| 101 | | $SBUILD $SUNIT.upc -o $SUNIT.int0 >>$SUNIT.int0.out 2>>$SUNIT.errout` |
|---|
| 102 | | |
|---|
| 103 | | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=1 -I../include \ |
|---|
| 104 | | $SBUILD $SUNIT.upc -o $SUNIT.int1 >>$SUNIT.int1.out 2>>$SUNIT.errout` |
|---|
| 105 | | |
|---|
| 106 | | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=4 -I../include \ |
|---|
| 107 | | $SBUILD $SUNIT.upc -o $SUNIT.int4 >>$SUNIT.int4.out 2>>$SUNIT.errout` |
|---|
| 108 | | |
|---|
| | 105 | if (( $e_memvec == 0)); then |
|---|
| | 106 | |
|---|
| | 107 | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=0 -I../include \ |
|---|
| | 108 | $SBUILD $SUNIT.upc -o $SUNIT.int0 >>$SUNIT.int0.out 2>>$SUNIT.errout` |
|---|
| | 109 | |
|---|
| | 110 | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=1 -I../include \ |
|---|
| | 111 | $SBUILD $SUNIT.upc -o $SUNIT.int1 >>$SUNIT.int1.out 2>>$SUNIT.errout` |
|---|
| | 112 | |
|---|
| | 113 | `$UPCC -D__restrict="" -DMEMVEC_SIZE=1 -DTYPE=int -DBLOCKSIZE=4 -I../include \ |
|---|
| | 114 | $SBUILD $SUNIT.upc -o $SUNIT.int4 >>$SUNIT.int4.out 2>>$SUNIT.errout` |
|---|
| | 115 | fi |
|---|
| | 116 | |
|---|
| 158 | | RUN_int0=`eval echo "upcrun -qn ${NP} ${SUNIT}.int0 ${FILE_INT}"` |
|---|
| 159 | | echo ${RUN_int0} |
|---|
| 160 | | exe_output=`${RUN_int0}` |
|---|
| 161 | | if [ $? -eq 0 ] ; then |
|---|
| 162 | | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int0]" |
|---|
| 163 | | echo $exe_output |
|---|
| 164 | | echo "${SUNIT}.int0" >>units.passed |
|---|
| 165 | | passed=$((passed+1)) |
|---|
| 166 | | else |
|---|
| 167 | | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.0]" |
|---|
| 168 | | echo $exe_output |
|---|
| 169 | | echo "${SUNIT}.int0" >>units.notpassed |
|---|
| 170 | | failed=$((failed+1)) |
|---|
| 171 | | fi |
|---|
| 172 | | |
|---|
| 173 | | RUN_int1=`eval echo "upcrun -qn ${NP} ${SUNIT}.int1 ${FILE_INT}"` |
|---|
| 174 | | echo ${RUN_int1} |
|---|
| 175 | | exe_output=`${RUN_int1}` |
|---|
| 176 | | if [ $? -eq 0 ] ; then |
|---|
| 177 | | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int1]" |
|---|
| 178 | | echo $exe_output |
|---|
| 179 | | echo "${SUNIT}.int1" >>units.passed |
|---|
| 180 | | passed=$((passed+1)) |
|---|
| 181 | | else |
|---|
| 182 | | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.int1]" |
|---|
| 183 | | echo $exe_output |
|---|
| 184 | | echo "${SUNIT}.int1" >>units.notpassed |
|---|
| 185 | | failed=$((failed+1)) |
|---|
| 186 | | fi |
|---|
| 187 | | |
|---|
| 188 | | RUN_int4=`eval echo "upcrun -qn ${NP} ${SUNIT}.int4 ${FILE_INT}"` |
|---|
| 189 | | echo ${RUN_int4} |
|---|
| 190 | | exe_output=`${RUN_int4}` |
|---|
| 191 | | if [ $? -eq 0 ] ; then |
|---|
| 192 | | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int4]" |
|---|
| 193 | | echo $exe_output |
|---|
| 194 | | echo "${SUNIT}.int4" >>units.passed |
|---|
| 195 | | passed=$((passed+1)) |
|---|
| 196 | | else |
|---|
| 197 | | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.int4]" |
|---|
| 198 | | echo $exe_output |
|---|
| 199 | | echo "${SUNIT}.int4" >>units.notpassed |
|---|
| 200 | | failed=$((failed+1)) |
|---|
| 201 | | fi |
|---|
| | 166 | if (($e_memvec == 0)); then |
|---|
| | 167 | RUN_int0=`eval echo "upcrun -qn ${NP} ${SUNIT}.int0 ${FILE_INT}"` |
|---|
| | 168 | echo ${RUN_int0} |
|---|
| | 169 | exe_output=`${RUN_int0}` |
|---|
| | 170 | if [ $? -eq 0 ] ; then |
|---|
| | 171 | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int0]" |
|---|
| | 172 | echo $exe_output |
|---|
| | 173 | echo "${SUNIT}.int0" >>units.passed |
|---|
| | 174 | passed=$((passed+1)) |
|---|
| | 175 | else |
|---|
| | 176 | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.0]" |
|---|
| | 177 | echo $exe_output |
|---|
| | 178 | echo "${SUNIT}.int0" >>units.notpassed |
|---|
| | 179 | failed=$((failed+1)) |
|---|
| | 180 | fi |
|---|
| | 181 | |
|---|
| | 182 | RUN_int1=`eval echo "upcrun -qn ${NP} ${SUNIT}.int1 ${FILE_INT}"` |
|---|
| | 183 | echo ${RUN_int1} |
|---|
| | 184 | exe_output=`${RUN_int1}` |
|---|
| | 185 | if [ $? -eq 0 ] ; then |
|---|
| | 186 | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int1]" |
|---|
| | 187 | echo $exe_output |
|---|
| | 188 | echo "${SUNIT}.int1" >>units.passed |
|---|
| | 189 | passed=$((passed+1)) |
|---|
| | 190 | else |
|---|
| | 191 | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.int1]" |
|---|
| | 192 | echo $exe_output |
|---|
| | 193 | echo "${SUNIT}.int1" >>units.notpassed |
|---|
| | 194 | failed=$((failed+1)) |
|---|
| | 195 | fi |
|---|
| | 196 | |
|---|
| | 197 | RUN_int4=`eval echo "upcrun -qn ${NP} ${SUNIT}.int4 ${FILE_INT}"` |
|---|
| | 198 | echo ${RUN_int4} |
|---|
| | 199 | exe_output=`${RUN_int4}` |
|---|
| | 200 | if [ $? -eq 0 ] ; then |
|---|
| | 201 | echo -e "TEST \033[34m\033[1mPASSED\033[0m for the unit [$SUNIT.int4]" |
|---|
| | 202 | echo $exe_output |
|---|
| | 203 | echo "${SUNIT}.int4" >>units.passed |
|---|
| | 204 | passed=$((passed+1)) |
|---|
| | 205 | else |
|---|
| | 206 | echo -e "TEST \033[31m\033[1mFAILED\033[0m for the unit [$SUNIT.int4]" |
|---|
| | 207 | echo $exe_output |
|---|
| | 208 | echo "${SUNIT}.int4" >>units.notpassed |
|---|
| | 209 | failed=$((failed+1)) |
|---|
| | 210 | fi |
|---|
| | 211 | fi |
|---|