Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72691064
post.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jul 16, 14:30
Size
1 KB
Mime Type
text/x-shellscript
Expires
Thu, Jul 18, 14:30 (2 d)
Engine
blob
Format
Raw Data
Handle
19090298
Attached To
R195 SCITAS application benchmarks
post.sh
View Options
#!/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
Log In to Comment