Skip to content
Snippets Groups Projects
Commit 9068675b authored by gkusoglu's avatar gkusoglu
Browse files

added verifying script

parent 5d43a51e
No related merge requests found
#!/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
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment