Skip to content
Permalink
2080085689
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (17 sloc) 814 Bytes
#!/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