#!/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 ./$1 > $1.log 2>&1 ./$2 > $2.log 2>&1 if cmp -s $1.log $2.log then echo "The files match" rm $1.log $2.log else echo "The files are different" fi