Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
41230dc0
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看板
未验证
提交
41230dc0
编写于
1月 16, 2023
作者:
zhouweiwei2014
提交者:
GitHub
1月 16, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[win] add windows cuda arch bin set (#49819)
上级
d3d69d8c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
8 deletion
+9
-8
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+9
-8
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
41230dc0
...
...
@@ -454,7 +454,7 @@ echo cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=Release -DWITH_AVX=%WITH_AVX% -D
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
-DINFERENCE
_DEMO_INSTALL_DIR
=
%INFERENCE_DEMO_INSTALL_DIR%
-DWITH
_STATIC_LIB
=
%WITH_STATIC_LIB%
^
-DWITH
_TENSORRT
=
%WITH_TENSORRT%
-DTENSORRT
_ROOT
=
"
%TENSORRT_ROOT%
"
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DCUDA
_ARCH_NAME
=
%CUDA_ARCH_NAME%
-DCUB
_PATH
=
%THIRD_PARTY_HOME%
/cub
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DCUDA
_ARCH_NAME
=
%CUDA_ARCH_NAME%
-DCU
DA
_ARCH_BIN
=
%CUDA_ARCH_BIN%
-DCU
B
_PATH
=
%THIRD_PARTY_HOME%
/cub
^
-DCUDA
_TOOLKIT_ROOT_DIR
=
"
%CUDA_TOOLKIT_ROOT_DIR%
"
-DNEW
_RELEASE_ALL
=
%NEW_RELEASE_ALL%
-DNEW
_RELEASE_PYPI
=
%NEW_RELEASE_PYPI%
^
-DNEW
_RELEASE_JIT
=
%NEW_RELEASE_JIT%
-DWITH
_ONNXRUNTIME
=
%WITH_ONNXRUNTIME%
...
...
@@ -463,7 +463,7 @@ cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=Release -DWITH_AVX=%WITH_AVX% -DWITH_
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
-DINFERENCE
_DEMO_INSTALL_DIR
=
%INFERENCE_DEMO_INSTALL_DIR%
-DWITH
_STATIC_LIB
=
%WITH_STATIC_LIB%
^
-DWITH
_TENSORRT
=
%WITH_TENSORRT%
-DTENSORRT
_ROOT
=
"
%TENSORRT_ROOT%
"
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DCUDA
_ARCH_NAME
=
%CUDA_ARCH_NAME%
-DCUB
_PATH
=
%THIRD_PARTY_HOME%
/cub
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DCUDA
_ARCH_NAME
=
%CUDA_ARCH_NAME%
-DCU
DA
_ARCH_BIN
=
%CUDA_ARCH_BIN%
-DCU
B
_PATH
=
%THIRD_PARTY_HOME%
/cub
^
-DCUDA
_TOOLKIT_ROOT_DIR
=
"
%CUDA_TOOLKIT_ROOT_DIR%
"
-DNEW
_RELEASE_ALL
=
%NEW_RELEASE_ALL%
-DNEW
_RELEASE_PYPI
=
%NEW_RELEASE_PYPI%
^
-DNEW
_RELEASE_JIT
=
%NEW_RELEASE_JIT%
-DWITH
_ONNXRUNTIME
=
%WITH_ONNXRUNTIME%
goto
:eof
...
...
@@ -627,6 +627,10 @@ for /F %%# in ('wmic os get localdatetime^|findstr 20') do set end=%%#
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"Build"
%cache_dir%
\tools\busybox64.exe
du
-h -d
0
%cd%
\paddle\fluid\pybind\libpaddle.dll
>
paddle_dll_size
.txt
set
/p
paddledllsize
=<
paddle_dll_size
.txt
for
/F
%%i
in
(
"
%paddledllsize%
"
)
do
echo
"Windows libpaddle.dll Size:
%%i
"
%cache_dir%
\tools\busybox64.exe
du
-h -d
0
%cd%
\python\dist
>
whl_size
.txt
set
/p
whlsize
=<
whl_size
.txt
for
/F
%%i
in
(
"
%whlsize%
"
)
do
echo
"Windows PR whl Size:
%%i
"
...
...
@@ -764,13 +768,10 @@ echo Step 5. Testing fluid library for inference ...
echo
========================================
tree
/F
%cd%
\paddle_inference_install_dir\paddle
%cache_dir%
\tools\busybox64.exe
du
-h -d
0
-k
%cd%
\paddle_inference_install_dir\paddle\lib
>
lib_size
.txt
%cache_dir%
\tools\busybox64.exe
du
-h -d
0
%cd%
\paddle_inference_install_dir
>
lib_size
.txt
set
/p
libsize
=<
lib_size
.txt
for
/F
%%i
in
(
"
%libsize%
"
)
do
(
set
/a
libsize_m
=
%%i
/1024
echo
"Windows Paddle_Inference Size:
!libsize_m!
M"
echo
ipipe_log_param_Windows_Paddle_Inference_Size
:
!libsize_m!
M
)
for
/F
%%i
in
(
"
%libsize%
"
)
do
echo
"Windows Paddle_Inference Size:
!libsize_m!
M"
for
/F
%%i
in
(
"
%libsize%
"
)
do
echo
ipipe_log_param_Windows_Paddle_Inference_Size
:
!libsize_m!
M
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
%WITH_TENSORRT%
%TENSORRT_ROOT%
%WITH_ONNXRUNTIME%
%MSVC_STATIC_CRT%
"
%CUDA_TOOLKIT_ROOT_DIR%
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录