Skip to content
Snippets Groups Projects
verify-output.sh 419 B
Newer Older
gkusoglu's avatar
gkusoglu committed
#!/bin/bash

gcc -O3 -march=native -fopenmp -I ../utilities  ../utilities/polybench.c $1.c -DPOLYBENCH_DUMP_ARRAYS -D$3_DATASET -o $1 -lm

gcc -O3 -march=native -fopenmp -I ../utilities  ../utilities/polybench.c $2.c -DPOLYBENCH_DUMP_ARRAYS -D$3_DATASET -o $2 -lm

gkusoglu's avatar
gkusoglu committed
./$1 > $1.log 2>&1
gkusoglu's avatar
gkusoglu committed

gkusoglu's avatar
gkusoglu committed
./$2 > $2.log 2>&1
gkusoglu's avatar
gkusoglu committed

if cmp -s $1.log $2.log
then
   echo "The files match"
else
   echo "The files are different"
gkusoglu's avatar
gkusoglu committed
fi

rm $1.log $2.log