Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77548142
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
Thu, Aug 15, 03:00
Size
729 B
Mime Type
text/x-shellscript
Expires
Sat, Aug 17, 03:00 (2 d)
Engine
blob
Format
Raw Data
Handle
19886213
Attached To
R195 SCITAS application benchmarks
post.sh
View Options
#!/bin/bash
# Author: Vittoria.Rezzonico@epfl.ch
# filename: res-cpmd.sh
begin
=
"NFI TEMPP EKS ECLASSIC DIS TCPU"
end
=
" RESTART INFORMATION WRITTEN ON FILE"
echo
"cores value"
> res_cpmd.txt
for
i in
`
cat ../cores.txt
`
;
do
if
[
"$i"
-lt 4
]
then
continue
fi
dir
=
BO
$i
echo
-n
"$i "
>> res_cpmd.txt
sed -n
"/$begin/,/$end/p"
$dir
/*.log
\
| sed
'/^ [[:digit:]]/d;/^ [[:digit:]]/d;/^$/d;/I/d'
\
| awk
'{ sum[5] += $5 } END { printf "%s\n", sum[5]/NR }'
>> res_cpmd.txt
[
-d ../Results/CPMD
]
&&
(
mkdir -p ../Results/CPMD/BO
$i
; cp BO
$i
/*.log ../Results/CPMD/BO
$i
/
)
done
[
-d ../Results/CPMD
]
&&
cp res_cpmd.txt ../Results/CPMD/
Event Timeline
Log In to Comment