Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
da29760d
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
da29760d
编写于
8月 19, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
8月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add msvc log from quiet to minimal (#26383)
上级
61800f4a
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
22 addition
and
14 deletion
+22
-14
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+22
-14
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
da29760d
...
...
@@ -25,12 +25,13 @@ mkdir build
cd
/d
build
rem ------initialize the virtual environment------
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
c
:\Python37
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
set
PATH
=
%PYTHON_ROOT%
;
%PYTHON_ROOT%
\Scripts
;
%PATH%
set
PYTHON_EXECUTABLE
=
%PYTHON_ROOT%
\python.exe
%PYTHON_EXECUTABLE%
-m
pip
install
virtualenv
if
not
exist
paddle_winci
(
%PYTHON_EXECUTABLE%
-m
virtualenv
paddle_winci
)
%PYTHON_EXECUTABLE%
-m
virtualenv
paddle_winci
call
paddle_winci
\Scripts\activate.bat
if
%ERRORLEVEL%
NEQ
0
exit
/b
%ERRORLEVEL%
rem ------pre install requirement----------
where
python
...
...
@@ -38,8 +39,11 @@ where pip
pip
install
--upgrade
pip
pip
install
wheel
pip
install
gym
pip
install
-r
%work_dir%
\python\requirements.txt
if
%ERRORLEVEL%
NEQ
0
exit
/b
%ERRORLEVEL%
pip
install
-U -r
%work_dir%
\python\requirements.txt
if
%ERRORLEVEL%
NEQ
0
(
call
paddle_winci
\Scripts\deactivate.bat
exit
/b
%ERRORLEVEL%
)
rem ------initialize common variable------
if
not
defined
CUDA_TOOLKIT_ROOT_DIR
set
CUDA_TOOLKIT_ROOT_DIR
=
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0"
...
...
@@ -57,7 +61,7 @@ dir %cache_dir%
set
INFERENCE_DEMO_INSTALL_DIR
=
%cache
_dir:\
=
/
%
/inference
_demo
if
not
exist
%cache_dir%
\tools
(
git
clone
https
://github.com/zhouwei25/tools
%cache_dir%
\tools
git
clone
https
://github.com/zhouwei25/tools
.git
%cache_dir%
\tools
if
%ERRORLEVEL%
NEQ
0
exit
/b
%ERRORLEVEL%
)
...
...
@@ -124,7 +128,7 @@ goto:eof
:cmake
_error
call
paddle_winci
\Scripts\deactivate.bat
echo
cmake
failed
!
echo
Cmake
failed
,
will
exit
!
exit
/b
1
rem ---------------------------------------------------------------------------------------------
...
...
@@ -133,39 +137,41 @@ echo ========================================
echo
Step
2
.
Buile
Paddle
...
echo
========================================
call
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
amd64
set
build_times
=
1
set
build_times
=
1
:build
_tp
echo
B
UILD
THIRD_PARTY
%build_times%
echo
B
uild
third_party
the
%build_times%
time
:
msbuild
/m /p
:Configuration
=
Release
/verbosity
:quiet
third_party
.vcxproj
echo
BUILD
THIRD_PARTY
RESULT
%ERRORLEVEL%
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
3
(
exit
/b
1
)
else
(
echo
Build
third_party
failed
,
will
retry
!
goto
:build
_tp
)
)
echo
Build
third_party
successfully
!
set
build_times
=
1
:build
_paddle
echo
BUILD
PADDLE
%build_times%
msbuild
/m /p
:Configuration
=
Release
/verbosity
:quiet
paddle
.sln
echo
BUILD
PADDLE
RESULT
%ERRORLEVEL%
echo
Build
Paddle
the
%build_times%
time
:
msbuild
/m /p
:Configuration
=
Release
/verbosity
:minimal
paddle
.sln
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
2
(
exit
/b
1
)
else
(
echo
Build
Paddle
failed
,
will
retry
!
goto
:build
_paddle
)
)
echo
Build
Paddle
successfully
!
goto
:eof
:build
_error
call
paddle_winci
\Scripts\deactivate.bat
echo
build
paddle
failed
!
echo
Build
Paddle
failed
,
will
exit
!
exit
/b
7
rem ---------------------------------------------------------------------------------------------
...
...
@@ -185,6 +191,7 @@ goto:eof
:test
_whl_pacakage_error
call
paddle_winci
\Scripts\deactivate.bat
echo
Pip
install
whl
package
failed
,
will
exit
!
exit
/b
3
rem ---------------------------------------------------------------------------------------------
...
...
@@ -206,6 +213,7 @@ goto:eof
:unit
_test_error
call
paddle_winci
\Scripts\deactivate.bat
echo
Running
unit
tests
failed
,
will
exit
!
exit
/b
8
rem ---------------------------------------------------------------------------------------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录