Skip to content
Snippets Groups Projects
Commit 2df83776 authored by gkusoglu's avatar gkusoglu
Browse files

modified test scripts

parent a043b748
Branches
No related merge requests found
#!/bin/bash
rm $1 > /dev/null 2>&1
if [[ $4 == "yes" ]] ; then
echo "---------------------------------"
echo "parallel ? : $3"
fi
if [[ $3 == "yes" ]] ; then
gcc -O3 -march=native -fopenmp -I ../utilities ../utilities/polybench.c $1.c -DPOLYBENCH_TIME -D$2_DATASET -o $1 -lm
else
gcc -O3 -march=native -I ../utilities ../utilities/polybench.c $1.c -DPOLYBENCH_TIME -D$2_DATASET -o $1 -lm
fi
if [[ $3 == "yes" ]] ; then
MIN=`OMP_PROC_BIND=true OMP_NUM_THREADS=12 ./$1 2>&1`
else
MIN=`./$1 2>&1`
fi
if [[ $4 == "yes" ]] ; then
echo "real $2 : $MIN"
else
echo "$MIN"
fi
\ No newline at end of file
#!/bin/bash
m1=`./build-and-getbest-run.sh $1 MEDIUM no no`
m1=`./build-and-run.sh $1 MEDIUM no no`
m2=`./build-and-getbest-run.sh $1_optimized MEDIUM no no`
var=$(awk 'BEGIN{ print "'${m1}'"<"'${m2}'" }')
if [ "$var" -eq 1 ];then
......@@ -8,7 +8,7 @@ if [ "$var" -eq 1 ];then
fi
echo -n "$m2 "
l1=`./build-and-getbest-run.sh $1 LARGE no no`
l1=`./build-and-run.sh $1 LARGE no no`
l2=`./build-and-getbest-run.sh $1_optimized LARGE no no`
var=$(awk 'BEGIN{ print "'${l1}'"<"'${l2}'" }')
if [ "$var" -eq 1 ];then
......
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