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