Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
6d1b8c52
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
6d1b8c52
编写于
12月 17, 2021
作者:
S
Sing_chan
提交者:
GitHub
12月 17, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug when build inference lib without tensorrt (#38156)
上级
eaa2363e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
9 deletion
+5
-9
paddle/fluid/inference/api/demo_ci/run.sh
paddle/fluid/inference/api/demo_ci/run.sh
+3
-7
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+1
-1
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+1
-1
未找到文件。
paddle/fluid/inference/api/demo_ci/run.sh
浏览文件 @
6d1b8c52
...
@@ -19,8 +19,9 @@ PADDLE_ROOT=$1
...
@@ -19,8 +19,9 @@ PADDLE_ROOT=$1
TURN_ON_MKL
=
$2
# use MKL or Openblas
TURN_ON_MKL
=
$2
# use MKL or Openblas
TEST_GPU_CPU
=
$3
# test both GPU/CPU mode or only CPU mode
TEST_GPU_CPU
=
$3
# test both GPU/CPU mode or only CPU mode
DATA_DIR
=
$4
# dataset
DATA_DIR
=
$4
# dataset
TENSORRT_ROOT_DIR
=
$5
# TensorRT root dir, default to /usr
USE_TENSORRT
=
$5
MSVC_STATIC_CRT
=
$6
TENSORRT_ROOT_DIR
=
$6
# TensorRT root dir, default to /usr
MSVC_STATIC_CRT
=
$7
inference_install_dir
=
${
PADDLE_ROOT
}
/build/paddle_inference_install_dir
inference_install_dir
=
${
PADDLE_ROOT
}
/build/paddle_inference_install_dir
WIN_DETECT
=
$(
echo
`
uname
`
|
grep
"Win"
)
# detect current platform
WIN_DETECT
=
$(
echo
`
uname
`
|
grep
"Win"
)
# detect current platform
...
@@ -37,11 +38,6 @@ else
...
@@ -37,11 +38,6 @@ else
use_gpu_list
=
'false'
use_gpu_list
=
'false'
fi
fi
USE_TENSORRT
=
OFF
if
[
-d
"
$TENSORRT_ROOT_DIR
"
]
;
then
USE_TENSORRT
=
ON
fi
PREFIX
=
inference-vis-demos%2F
PREFIX
=
inference-vis-demos%2F
URL_ROOT
=
http://paddlemodels.bj.bcebos.com/
${
PREFIX
}
URL_ROOT
=
http://paddlemodels.bj.bcebos.com/
${
PREFIX
}
...
...
paddle/scripts/paddle_build.bat
浏览文件 @
6d1b8c52
...
@@ -742,7 +742,7 @@ for /F %%i in ("%libsize%") do (
...
@@ -742,7 +742,7 @@ for /F %%i in ("%libsize%") do (
)
)
cd
/d
%work_dir%
\paddle\fluid\inference\api\demo_ci
cd
/d
%work_dir%
\paddle\fluid\inference\api\demo_ci
%cache_dir%
\tools\busybox64.exe
bash
run
.sh
%work
_dir:\
=
/
%
%WITH_MKL%
%WITH_GPU%
%cache
_dir:\
=
/
%
/inference
_demo
%TENSORRT_ROOT%
%MSVC_STATIC_CRT%
%cache_dir%
\tools\busybox64.exe
bash
run
.sh
%work
_dir:\
=
/
%
%WITH_MKL%
%WITH_GPU%
%cache
_dir:\
=
/
%
/inference
_demo
%
WITH_TENSORRT%
%
TENSORRT_ROOT%
%MSVC_STATIC_CRT%
goto
:eof
goto
:eof
:test
_inference_error
:test
_inference_error
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
6d1b8c52
...
@@ -2244,7 +2244,7 @@ EOF
...
@@ -2244,7 +2244,7 @@ EOF
demo_ci_startTime_s
=
`
date
+%s
`
demo_ci_startTime_s
=
`
date
+%s
`
cd
${
PADDLE_ROOT
}
/paddle/fluid/inference/api/demo_ci
cd
${
PADDLE_ROOT
}
/paddle/fluid/inference/api/demo_ci
./run.sh
${
PADDLE_ROOT
}
${
WITH_MKL
:-
ON
}
${
WITH_GPU
:-
OFF
}
${
INFERENCE_DEMO_INSTALL_DIR
}
\
./run.sh
${
PADDLE_ROOT
}
${
WITH_MKL
:-
ON
}
${
WITH_GPU
:-
OFF
}
${
INFERENCE_DEMO_INSTALL_DIR
}
\
${
TENSORRT_ROOT_DIR
:-
/usr
}
${
WITH_TENSORRT
:-
ON
}
${
TENSORRT_ROOT_DIR
:-
/usr
}
DEMO_EXIT_CODE
=
$?
DEMO_EXIT_CODE
=
$?
./clean.sh
./clean.sh
demo_ci_endTime_s
=
`
date
+%s
`
demo_ci_endTime_s
=
`
date
+%s
`
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录