Permalink
Cannot retrieve contributors at this time
parallel_mcmc/parallel/big_experiment.sh
Go to file#!/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 |