Skip to content

Commit bada50c

Browse files
authored
Changing reference to test plugin location (#5456)
* Removing variable concatenation in favor of condition * Adding verbose mode on copy
1 parent f1aedd4 commit bada50c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qa/L0_trt_plugin/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ PLUGIN_TEST=trt_plugin_test.py
5050
if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then
5151
DATADIR=${DATADIR:="/mnt/c/data/inferenceserver/${REPO_VERSION}"}
5252
MODELDIR=${MODELDIR:=C:/models}
53-
CUSTOMPLUGIN=${CUSTOMPLUGIN:=clipplugin.dll}
53+
CUSTOMPLUGIN=${CUSTOMPLUGIN:=$MODELDIR/clipplugin.dll}
5454
BACKEND_DIR=${BACKEND_DIR:=C:/tritonserver/backends}
5555
SERVER=${SERVER:=/mnt/c/tritonserver/bin/tritonserver.exe}
5656
else
5757
DATADIR=${DATADIR:="/data/inferenceserver/${REPO_VERSION}"}
5858
MODELDIR=${MODELDIR:=`pwd`/models}
59-
CUSTOMPLUGIN=${CUSTOMPLUGIN:=libclipplugin.so}
59+
CUSTOMPLUGIN=${CUSTOMPLUGIN:=$MODELDIR/libclipplugin.so}
6060
TRITON_DIR=${TRITON_DIR:="/opt/tritonserver"}
6161
BACKEND_DIR=${TRITON_DIR}/backends
6262
SERVER=${TRITON_DIR}/bin/tritonserver
@@ -77,7 +77,7 @@ LOG_IDX=0
7777
## Create model folder with default plugin models
7878
rm -fr models && mkdir -p models
7979
set -e
80-
find $DATADIR/qa_trt_plugin_model_repository/ -mindepth 1 -maxdepth 1 ! -iname '*clipplugin*' -exec cp -r {} models \;
80+
find $DATADIR/qa_trt_plugin_model_repository/ -mindepth 1 -maxdepth 1 ! -iname '*clipplugin*' -exec cp -rv {} models \;
8181

8282
SERVER_ARGS=$SERVER_ARGS_BASE
8383
SERVER_LOG="./inference_server_$LOG_IDX.log"
@@ -147,7 +147,7 @@ fi
147147
LOG_IDX=$((LOG_IDX+1))
148148

149149
## Backend Config, Single Plugin Test
150-
SERVER_ARGS="${SERVER_ARGS_BASE} --backend-config=tensorrt,plugins=${MODELDIR}/${CUSTOMPLUGIN}"
150+
SERVER_ARGS="${SERVER_ARGS_BASE} --backend-config=tensorrt,plugins=${CUSTOMPLUGIN}"
151151
SERVER_LOG="./inference_server_$LOG_IDX.log"
152152

153153
run_server
@@ -179,7 +179,7 @@ kill_server
179179
LOG_IDX=$((LOG_IDX+1))
180180

181181
## Backend Config, Multiple Plugins Test
182-
SERVER_ARGS="${SERVER_ARGS_BASE} --backend-config=tensorrt,plugins=${MODELDIR}/${CUSTOMPLUGIN};${MODELDIR}/${CUSTOMPLUGIN}\""
182+
SERVER_ARGS="${SERVER_ARGS_BASE} --backend-config=tensorrt,plugins=${CUSTOMPLUGIN}"
183183
SERVER_LOG="./inference_server_$LOG_IDX.log"
184184

185185
run_server
@@ -213,7 +213,7 @@ LOG_IDX=$((LOG_IDX+1))
213213
## LD_PRELOAD, Single Plugin Test
214214
## LD_PRELOAD is only on Linux
215215

216-
SERVER_LD_PRELOAD=$MODELDIR/$CUSTOMPLUGIN
216+
SERVER_LD_PRELOAD=$CUSTOMPLUGIN
217217
SERVER_ARGS=$SERVER_ARGS_BASE
218218
SERVER_LOG="./inference_server_$LOG_IDX.log"
219219

0 commit comments

Comments
 (0)