Page MenuHomec4science

post.sh
No OneTemporary

File Metadata

Created
Tue, Jul 16, 14:30
#!/bin/bash
# filename: post.sh
# outputs grid size, cores, total program time to miniFE.txt
# outputs all the values to miniFE-all.txt
# copies itself to ../Results/miniFE-1.4
# copies used files to ../Results/miniFE-1.4
echo "size cores Total_Program_Time" > res_miniFE.txt
echo "size cores Mat-struc-gen FE_assembly WAXPY_Time DOT_Time MATVEC_Time Total_CG_Time Total_Program_Time" > res_miniFE-complete.txt
for size in `cat ../miniFE-sizes.txt`; do
for i in `cat ../cores.txt`; do
file=miniFE.$size.P$i.*.yaml
matstruc=`grep "Mat-struc-gen" $file | awk '{ print $3 }'`
fe=`grep "FE assembly " $file | awk '{ print $4 }'`
waxpy=`grep "WAXPY Time" $file | awk '{ print $3 }'`
dot=`grep "DOT Time" $file | awk '{ print $3 }'`
matvec=`grep "MATVEC Time" $file | awk '{ print $3 }'`
cg=`grep "Total CG Time" $file | awk '{ print $4 }'`
total=`grep "Total Program Time" $file | awk '{ print $4 }'`
echo "$size $i $matstruc $fe $waxpy $dot $matvec $cg $total" >> res_miniFE-complete.txt
echo "$size $i $total" >> res_miniFE.txt
[ -d ../Results/miniFE-1.4 ] && cp $file ../Results/miniFE-1.4/
done
done
[ -d ../Results/miniFE-1.4 ] && cp res_miniFE.txt res_miniFE-complete.txt ../Results/miniFE-1.4

Event Timeline