projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3931f11
)
Add tiny test
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 17:54:07 +0000
(11:54 -0600)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 17:54:07 +0000
(11:54 -0600)
tests/test-single-openmp.sh
patch
|
blob
|
history
diff --git
a/tests/test-single-openmp.sh
b/tests/test-single-openmp.sh
index 9eea4dae70e87ab859db7715d64941afc3afc25c..345a7aac5057766c5941c04bae7040a481e219a5 100755
(executable)
--- a/
tests/test-single-openmp.sh
+++ b/
tests/test-single-openmp.sh
@@
-1,22
+1,25
@@
#/bin/bash
#/bin/bash
-TEST=s
hort
+TEST=s
mall
if test $# -ge 1; then
TEST=$1
fi
if test $# -ge 1; then
TEST=$1
fi
-if test "x$TEST" = "xshort"; then
+if test "x$TEST" = "xtiny"; then
+ PR=19; PV=14; IX=11; IY=$IX
+ NSAMPLE=2
+elif test "x$TEST" = "xsmall"; then
PR=165; PV=144; IX=115; IY=$IX
NSAMPLE=2
elif test "x$TEST" = "xmedium"; then
PR=901; PV=600; IX=500; IY=$IX
NSAMPLE=4
PR=165; PV=144; IX=115; IY=$IX
NSAMPLE=2
elif test "x$TEST" = "xmedium"; then
PR=901; PV=600; IX=500; IY=$IX
NSAMPLE=4
-elif test "x$TEST" = "xl
ong
"; then
+elif test "x$TEST" = "xl
arge
"; then
PR=1651; PV=1440; IX=1151; IY=$IX
NSAMPLE=5
else
PR=1651; PV=1440; IX=1151; IY=$IX
NSAMPLE=5
else
- echo "usage: $0
[test-size]
"
- echo "test-size
-- either short, medium, or long
"
+ echo "usage: $0
<test-size>
"
+ echo "test-size
-- tiny, small, medium, or large
"
exit
fi
TIME=
exit
fi
TIME=
@@
-27,8
+30,7
@@
BIN_OMP=$DIR/omp/ctsimtext
RUNTIME_REGEX="sed -r 's/^[^0-9]* ([0-9\.]+)[ a-z]*/\1/'"
for PHAN in herman; do
RUNTIME_REGEX="sed -r 's/^[^0-9]* ([0-9\.]+)[ a-z]*/\1/'"
for PHAN in herman; do
- fbase=${DIR}/${PHAN}
- phmbase=$fbase
+ phmbase=${DIR}/${PHAN}-${TEST}
rm -rf ${phmbase}-*
ts=`sh -c "$BIN_SNG phm2if ${phmbase}-sng.if $IX $IY --phantom $PHAN --nsample $NSAMPLE --verbose | tail -1 | $RUNTIME_REGEX"`
rm -rf ${phmbase}-*
ts=`sh -c "$BIN_SNG phm2if ${phmbase}-sng.if $IX $IY --phantom $PHAN --nsample $NSAMPLE --verbose | tail -1 | $RUNTIME_REGEX"`
@@
-44,7
+46,8
@@
for PHAN in herman; do
ratio=`bc <<< "scale=2; $ts / $tm"`
echo "Projection,$PHAN,$GEOM,$tm,$ts,$ratio"
ratio=`bc <<< "scale=2; $ts / $tm"`
echo "Projection,$PHAN,$GEOM,$tm,$ts,$ratio"
- for BP in idiff diff table trig; do
+ for BP in idiff diff; do
+# for BP in idiff diff table trig; do
for INT in nearest linear cubic; do
recbase=${ifbase}-${BP}-${INT}
ts=`sh -c "$BIN_SNG pjrec ${ifbase}-sng.pj $recbase-sng.if $IX $IY --verbose --interp $INT --backproj $BP | tail -1 | $RUNTIME_REGEX"`
for INT in nearest linear cubic; do
recbase=${ifbase}-${BP}-${INT}
ts=`sh -c "$BIN_SNG pjrec ${ifbase}-sng.pj $recbase-sng.if $IX $IY --verbose --interp $INT --backproj $BP | tail -1 | $RUNTIME_REGEX"`