Skip to content
Permalink
Browse files

sh files

  • Loading branch information
yuz12012 committed May 1, 2017
1 parent e23bb33 commit 20800856892529b803ed50ce98913126423b8b7e
Showing with 28 additions and 8 deletions.
  1. +19 −0 parallel/big_experiment.sh
  2. +9 −8 parallel/experiment.sh
@@ -0,0 +1,19 @@
#!/bin/sh

echo "trial,block,thread,our_time,their_time" > analysisBig.csv
for trials in $(seq 500 500 2500)
#trials=$(($trials*1000))
do
for i in $(seq 1 10)
do
for jj in $(seq 0 11)
do
j=$((2**jj))
c=$({ time -p /scratch/hpc_proj_yuz12012_rjm11010/mcmc/seq_gibbs /scratch/hpc_proj_yuz12012_rjm11010/mcmc/big_data.txt $trials >/dev/null; } 2>&1 | grep real |awk '{print $2}')
a=$({ time -p ./mygibbs /scratch/hpc_proj_yuz12012_rjm11010/mcmc/big_data.txt $trials $i $j >/dev/null; } 2>&1 | grep real |awk '{print $2}')
b=$({ time -p ./gibbs /scratch/hpc_proj_yuz12012_rjm11010/mcmc/big_data.txt $trials >/dev/null; } 2>&1 | grep real |awk '{print $2}')
echo "$trials,$i,$j,$c,$a,$b" >> analysisBig.csv

done
done
done
@@ -1,17 +1,18 @@
#!/bin/sh #!/bin/sh


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

j=$((2**jj))
a=$({ time ./mygibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real) c=$({ time -p /scratch/hpc_proj_yuz12012_rjm11010/mcmc/seq_gibbs data.txt $trials >/dev/null; } 2>&1 | grep real |awk '{print $2}')
b=$({ time ./gibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real) a=$({ time -p ./mygibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real |awk '{print $2}')
echo "$trials,$i,$j,$a,$b" >> out.csv b=$({ time -p ./gibbs data.txt $trials >/dev/null; } 2>&1 | grep real |awk '{print $2}')
echo "$trials,$i,$j,$c,$a,$b" >> analysis.csv


done done
done done

0 comments on commit 2080085

Please sign in to comment.
You can’t perform that action at this time.