Skip to content

Commit

Permalink
Add LD_PRELOAD for sequence batcher/infer tests (#5125)
Browse files Browse the repository at this point in the history
* Add LD_PRELOAD for sequence batcher/infer tests

* Review edit
  • Loading branch information
Tabrizian authored and mc-nv committed Dec 5, 2022
1 parent b6e7ac4 commit ffbbccf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qa/L0_infer/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ else
TRITON_DIR=${TRITON_DIR:="/opt/tritonserver"}
SERVER=${TRITON_DIR}/bin/tritonserver
BACKEND_DIR=${TRITON_DIR}/backends

# PyTorch on SBSA requires libgomp to be loaded first. See the following
# GitHub issue for more information:
# https://github.com/pytorch/pytorch/issues/2575
arch=`uname -m`
if [ $arch = "aarch64" ]; then
SERVER_LD_PRELOAD=/usr/lib/$(uname -m)-linux-gnu/libgomp.so.1
fi
fi

# Allow more time to exit. Ensemble brings in too many models
Expand Down
8 changes: 8 additions & 0 deletions qa/L0_sequence_batcher/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ else
TRITON_DIR=${TRITON_DIR:="/opt/tritonserver"}
SERVER=${TRITON_DIR}/bin/tritonserver
BACKEND_DIR=${TRITON_DIR}/backends

# PyTorch on SBSA requires libgomp to be loaded first. See the following
# GitHub issue for more information:
# https://github.com/pytorch/pytorch/issues/2575
arch=`uname -m`
if [ $arch = "aarch64" ]; then
SERVER_LD_PRELOAD=/usr/lib/$(uname -m)-linux-gnu/libgomp.so.1
fi
fi

SERVER_ARGS_EXTRA="--backend-directory=${BACKEND_DIR} --backend-config=tensorflow,version=${TF_VERSION}"
Expand Down

0 comments on commit ffbbccf

Please sign in to comment.