mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* add prebuild dockerfile * add prebuild test workflw * update * update * rm other workflow for test * Update docker image * add win1o prebuild * add test prebuild * add windows scripts in prebuilt package * add linux scripts in prebuilt package * generate_build_config.py * fix cudnn search * fix env * fix script * fix rpath * fix cwd * fix windows * fix lint * windows prebuild ci * linux prebuild ci * fix * update trigger * Revert "rm other workflow for test" This reverts commit 0a0387275014efab71046d33a0e52904672b4012. * update sdk build readme * update prebuild * fix dll deps for python >= 3.8 on windows * fix ci * test prebuild * update test script to avoid modify upload folder * add onnxruntime.dll to mmdeploy_python * update prebuild workflow * update prebuild * Update loader.cpp.in * remove exists prebuild files * fix opencv env * update cmake options for mmdeploy python build * remove test code * fix lint --------- Co-authored-by: RunningLeon <mnsheng@yeah.net> Co-authored-by: RunningLeon <maningsheng@sensetime.com>
30 lines
693 B
Bash
Executable File
30 lines
693 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -n "$1" ]; then
|
|
WORKSPACE=$1
|
|
else
|
|
WORKSPACE=$(realpath $(dirname "$0"))
|
|
fi
|
|
|
|
THIRDPARTY_DIR=$WORKSPACE/thirdparty
|
|
|
|
pushd $THIRDPARTY_DIR
|
|
|
|
if [ -d onnxruntime ]; then
|
|
export ONNXRUNTIME_DIR=$THIRDPARTY_DIR/onnxruntime
|
|
export LD_LIBRARY_PATH=$ONNXRUNTIME_DIR/lib:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
if [ -d tensorrt ]; then
|
|
export TENSORRT_DIR=$THIRDPARTY_DIR/tensorrt
|
|
export LD_LIBRARY_PATH=$TENSORRT_DIR/lib:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
if [ -d openvino ]; then
|
|
export InferenceEngine_DIR=$THIRDPARTY_DIR/runtime/cmake
|
|
sopaths=$(find $(pwd)/openvino -name "*.so" -exec dirname {} \; | uniq | tr '\n' ':')
|
|
export LD_LIBRARY_PATH=$sopaths$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
popd
|