7 TMPDIR
=`mktemp -d --suffix=.ppcg`
8 CPPFLAGS
="-DPOLYBENCH_DUMP_ARRAYS $SIZE -I $DIR/utilities"
9 CFLAGS
="-lm --std=gnu99"
11 echo "Running tests in folder ${TMPDIR}"
15 for i
in `cat $DIR/utilities/benchmark_list`; do
19 source_opt
="${TMPDIR}/$name.$ext.c"
20 prog_orig
=${TMPDIR}/$name.orig
${EXEEXT}
21 prog_opt
=${TMPDIR}/$name.
$ext${EXEEXT}
22 output_orig
=${TMPDIR}/$name.orig.out
23 output_opt
=${TMPDIR}/$name.
$ext.out
25 .
/ppcg
$EXEEXT --target=c
-I $DIR/$dir $DIR/$i $CPPFLAGS \
26 -o $source_opt ||
exit
27 $CC -I $DIR/$dir $CPPFLAGS $DIR/$i -o $prog_orig \
28 $DIR/utilities
/polybench.c
$CFLAGS
29 $prog_orig 2> $output_orig
30 $CC -I $DIR/$dir $CPPFLAGS $source_opt -o $prog_opt \
31 $DIR/utilities
/polybench.c
$CFLAGS ||
exit
33 $prog_opt 2> $output_opt
34 cmp $output_orig $output_opt ||
exit