mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 09:31:35 +08:00
[Other] Remove useless macros (#1095)
* Remove useless macros * triger ci * fix check error * rename INTEGRATE_PADDLE2ONNX to ENABLE_PADDLE2ONNX
This commit is contained in:
@@ -13,32 +13,32 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ARGS=`getopt -a -o w:n:h:hs -l WITH_GPU:,docker_name:,http_proxy:,https_proxy: -- "$@"`
|
||||
ARGS=`getopt -a -o w:n:h:hs -l WITH_GPU:,docker_name:,http_proxy:,https_proxy: -- "$@"`
|
||||
|
||||
eval set -- "${ARGS}"
|
||||
eval set -- "${ARGS}"
|
||||
echo "parse start"
|
||||
|
||||
while true
|
||||
do
|
||||
case "$1" in
|
||||
-w|--WITH_GPU)
|
||||
WITH_GPU="$2"
|
||||
while true
|
||||
do
|
||||
case "$1" in
|
||||
-w|--WITH_GPU)
|
||||
WITH_GPU="$2"
|
||||
shift;;
|
||||
-n|--docker_name)
|
||||
docker_name="$2"
|
||||
-n|--docker_name)
|
||||
docker_name="$2"
|
||||
shift;;
|
||||
-h|--http_proxy)
|
||||
http_proxy="$2"
|
||||
-h|--http_proxy)
|
||||
http_proxy="$2"
|
||||
shift;;
|
||||
-hs|--https_proxy)
|
||||
https_proxy="$2"
|
||||
-hs|--https_proxy)
|
||||
https_proxy="$2"
|
||||
shift;;
|
||||
--)
|
||||
--)
|
||||
shift
|
||||
break;;
|
||||
break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
done
|
||||
|
||||
if [ -z $WITH_GPU ];then
|
||||
WITH_GPU="ON"
|
||||
@@ -88,7 +88,7 @@ nvidia-docker run -i --rm --name ${docker_name} \
|
||||
python setup.py bdist_wheel;
|
||||
cd /workspace/fastdeploy;
|
||||
rm -rf build; mkdir -p build;cd build;
|
||||
cmake .. -DENABLE_TRT_BACKEND=ON -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy_install -DWITH_GPU=ON -DTRT_DIRECTORY=/workspace/fastdeploy/serving/TensorRT-8.4.1.5/ -DENABLE_PADDLE_BACKEND=ON -DENABLE_ORT_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_VISION=OFF -DBUILD_FASTDEPLOY_PYTHON=OFF -DENABLE_PADDLE_FRONTEND=ON -DENABLE_TEXT=OFF -DLIBRARY_NAME=fastdeploy_runtime;
|
||||
cmake .. -DENABLE_TRT_BACKEND=ON -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy_install -DWITH_GPU=ON -DTRT_DIRECTORY=/workspace/fastdeploy/serving/TensorRT-8.4.1.5/ -DENABLE_PADDLE_BACKEND=ON -DENABLE_ORT_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_VISION=OFF -DBUILD_FASTDEPLOY_PYTHON=OFF -DENABLE_PADDLE2ONNX=ON -DENABLE_TEXT=OFF -DLIBRARY_NAME=fastdeploy_runtime;
|
||||
make -j`nproc`;
|
||||
make install;
|
||||
cd /workspace/fastdeploy/serving;
|
||||
@@ -121,7 +121,7 @@ docker run -i --rm --name ${docker_name} \
|
||||
python setup.py bdist_wheel;
|
||||
cd /workspace/fastdeploy;
|
||||
rm -rf build; mkdir build; cd build;
|
||||
cmake .. -DENABLE_TRT_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy_install -DWITH_GPU=OFF -DENABLE_PADDLE_BACKEND=ON -DENABLE_ORT_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_VISION=OFF -DBUILD_FASTDEPLOY_PYTHON=OFF -DENABLE_PADDLE_FRONTEND=ON -DENABLE_TEXT=OFF -DLIBRARY_NAME=fastdeploy_runtime;
|
||||
cmake .. -DENABLE_TRT_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy_install -DWITH_GPU=OFF -DENABLE_PADDLE_BACKEND=ON -DENABLE_ORT_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_VISION=OFF -DBUILD_FASTDEPLOY_PYTHON=OFF -DENABLE_PADDLE2ONNX=ON -DENABLE_TEXT=OFF -DLIBRARY_NAME=fastdeploy_runtime;
|
||||
make -j`nproc`;
|
||||
make install;
|
||||
cd /workspace/fastdeploy/serving;
|
||||
|
Reference in New Issue
Block a user