Skip to content

Instantly share code, notes, and snippets.

@bluebycode
Created June 21, 2018 17:26
Show Gist options
  • Select an option

  • Save bluebycode/c79fca5d73679cd55bfb627dba2c1c3b to your computer and use it in GitHub Desktop.

Select an option

Save bluebycode/c79fca5d73679cd55bfb627dba2c1c3b to your computer and use it in GitHub Desktop.
# ./bench <app> N At t threads compilebeforerun?
# ./bench app-p 1000 100 1 64 true
app=${1}
N=${2}
At=${3:-"100"}
t=${4:-"1"}
threads=${5:-"64"}
compile=${6:-"true"}
if [ "$compile" = "true" ]; then
make clean all
fi
echo "Threads....... $threads"
echo "Particulas.... $N"
echo "Time.... At($At) * $t"
export OMP_NUM_THREADS=$threads && ./$app $N $At $t g && diff output.txt output_seq.txt | head -n 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment