Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
233f1607
Commit
233f1607
authored
Apr 07, 2015
by
Philip Carns
Browse files
mpi counter checks for fperf regression
parent
96df671a
Changes
3
Hide whitespace changes
Inline
Side-by-side
darshan-test/regression/test-cases/fperf-f77.sh
View file @
233f1607
...
...
@@ -26,24 +26,26 @@ if [ $? -ne 0 ]; then
echo
"Error: failed to parse
${
DARSHAN_LOGFILE
}
"
1>&2
exit
1
fi
$DARSHAN_PATH
/bin/darshan-mpiio-parser
$DARSHAN_LOGFILE
>
$DARSHAN_TMP
/
${
PROG
}
-mpiio
.darshan.txt
if
[
$?
-ne
0
]
;
then
echo
"Error: failed to parse
${
DARSHAN_LOGFILE
}
"
1>&2
exit
1
fi
# check results
# in this case we want to confirm that both the MPI and POSIX open counters were triggered
#MPI_OPENS=`grep CP_COLL_OPENS $DARSHAN_TMP/${PROG}.darshan.txt |cut -f 4`
#if [ ! $MPI_OPENS -gt 0 ]; then
# echo "Error: MPI open count of $MPI_OPENS is incorrect" 1>&2
# exit 1
#fi
#POSIX_OPENS=`grep CP_POSIX_OPENS $DARSHAN_TMP/${PROG}.darshan.txt |cut -f 4`
#if [ ! $POSIX_OPENS -gt 0 ]; then
# echo "Error: POSIX open count of $POSIX_OPENS is incorrect" 1>&2
# exit 1
#fi
POSIX_OPENS
=
`
grep
POSIX_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |cut
-d
:
-f
2 |xargs
`
if
[
!
$POSIX_OPENS
-gt
0
]
;
then
echo
"Error: POSIX open count of
$POSIX_OPENS
is incorrect"
1>&2
exit
1
fi
MPI_OPENS
=
`
grep
COLL_OPENS
$DARSHAN_TMP
/
${
PROG
}
-mpiio
.darshan.txt |cut
-d
:
-f
2 |xargs
`
if
[
!
$MPI_OPENS
-gt
0
]
;
then
echo
"Error: MPI open count of
$MPI_OPENS
is incorrect"
1>&2
exit
1
fi
exit
0
darshan-test/regression/test-cases/fperf-f90.sh
View file @
233f1607
...
...
@@ -26,24 +26,26 @@ if [ $? -ne 0 ]; then
echo
"Error: failed to parse
${
DARSHAN_LOGFILE
}
"
1>&2
exit
1
fi
$DARSHAN_PATH
/bin/darshan-mpiio-parser
$DARSHAN_LOGFILE
>
$DARSHAN_TMP
/
${
PROG
}
-mpiio
.darshan.txt
if
[
$?
-ne
0
]
;
then
echo
"Error: failed to parse
${
DARSHAN_LOGFILE
}
"
1>&2
exit
1
fi
# check results
# in this case we want to confirm that both the MPI and POSIX open counters were triggered
#MPI_OPENS=`grep CP_COLL_OPENS $DARSHAN_TMP/${PROG}.darshan.txt |cut -f 4`
#if [ ! $MPI_OPENS -gt 0 ]; then
# echo "Error: MPI open count of $MPI_OPENS is incorrect" 1>&2
# exit 1
#fi
#POSIX_OPENS=`grep CP_POSIX_OPENS $DARSHAN_TMP/${PROG}.darshan.txt |cut -f 4`
#if [ ! $POSIX_OPENS -gt 0 ]; then
# echo "Error: POSIX open count of $POSIX_OPENS is incorrect" 1>&2
# exit 1
#fi
POSIX_OPENS
=
`
grep
POSIX_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |cut
-d
:
-f
2 |xargs
`
if
[
!
$POSIX_OPENS
-gt
0
]
;
then
echo
"Error: POSIX open count of
$POSIX_OPENS
is incorrect"
1>&2
exit
1
fi
MPI_OPENS
=
`
grep
COLL_OPENS
$DARSHAN_TMP
/
${
PROG
}
-mpiio
.darshan.txt |cut
-d
:
-f
2 |xargs
`
if
[
!
$MPI_OPENS
-gt
0
]
;
then
echo
"Error: MPI open count of
$MPI_OPENS
is incorrect"
1>&2
exit
1
fi
exit
0
darshan-test/regression/test-cases/mpi-io-test.sh
View file @
233f1607
...
...
@@ -32,6 +32,8 @@ if [ $? -ne 0 ]; then
exit
1
fi
# check results
# in this case we want to confirm that both the MPI and POSIX open counters were triggered
POSIX_OPENS
=
`
grep
POSIX_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |cut
-d
:
-f
2 |xargs
`
if
[
!
$POSIX_OPENS
-gt
0
]
;
then
echo
"Error: POSIX open count of
$POSIX_OPENS
is incorrect"
1>&2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment