Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.uconn.edu:cudahpcproj/parallel_mcmc
  • Loading branch information
rjm11010 committed Apr 29, 2017
2 parents e4f18f0 + e8615fc commit 654c07a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions parallel/experiment.sh
@@ -0,0 +1,18 @@
#!/bin/sh

echo "trial,block,thread,our_time,their_time" > out.csv
for trials in {1000 10000}
#trials=$(($trials*1000))
do
for i in $(seq 1 1000)
do
for j in $(seq 1 1000)
do

a=$({ time ./mygibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real)
b=$({ time ./gibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real)
echo "$trials,$i,$j,$a,$b" >> out.csv

done
done
done

0 comments on commit 654c07a

Please sign in to comment.