Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67708717
compare.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
Sun, Jun 23, 22:18
Size
894 B
Mime Type
text/x-shellscript
Expires
Tue, Jun 25, 22:18 (2 d)
Engine
blob
Format
Raw Data
Handle
18443335
Attached To
rLAMMPS lammps
compare.sh
View Options
#!/bin/sh
dirs
=
`
/bin/ls -d bench_*
`
for
d in
$dirs
do
\
pushd
$d
s
=
log.0xOpenMP_1xMPI
t
=
`
echo
$s
| sed -e
's/log./ref./'
`
if
[
! -f
$s
]
then
popd
continue
fi
egrep -v
'(LAMMPS|OpenMP|MPI|serial|Memory|Loop|Perform|FFT)'
$s
\
| sed -e
's/-0\.0000000000/0.0000000000 /g'
-e
'/^Section.*/,$d'
\
>
$t
if
[
-f refoutput/
${
t
}
.gz
]
then
zdiff -u refoutput/
${
t
}
.gz
$t
&&
rm
$t
else
echo
no reference output
for
$s
fi
for
l in log.?xOpenMP*;
do
\
[
$l
==
$s
]
&&
continue
k
=
`
echo
$l
| sed -e
's/log./ref./'
`
egrep -v
'(LAMMPS|OpenMP|MPI|serial|Memory|Loop|Perform|FFT|/omp)'
$l
\
| sed -e
's/-0\.0000000000/0.0000000000 /g'
-e
'/^Section.*/,$d'
\
>
$k
if
[
-f refoutput/
${
t
}
.gz
]
then
zdiff -u refoutput/
${
t
}
.gz
$k
&&
rm
$k
else
echo
no reference output
for
$l
fi
done
popd
done
Event Timeline
Log In to Comment