Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
b7371fa5
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看板
未验证
提交
b7371fa5
编写于
9月 22, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
9月 22, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
judge whether remove build dir to accelerate compile,test=develop (#27334)
上级
18f2ea66
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
43 addition
and
15 deletion
+43
-15
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+43
-15
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
b7371fa5
...
...
@@ -20,14 +20,51 @@ rem Paddle CI Task On Windows Platform
rem =================================================
rem -------clean up environment-----------
wmic
process
where
name
=
"op_function_generator.exe"
call
terminate
2
>
NUL
set
work_dir
=
%cd%
mkdir
build
wmic
process
where
name
=
"op_function_generator.exe"
call
terminate
2
>
NUL
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"
if
not
defined
BRANCH
set
BRANCH
=
develop
if
not
defined
WITH_MKL
set
WITH_MKL
=
ON
if
not
defined
WITH_GPU
set
WITH_GPU
=
OFF
if
not
defined
WITH_AVX
set
WITH_AVX
=
ON
if
not
defined
WITH_TESTING
set
WITH_TESTING
=
ON
if
not
defined
WITH_PYTHON
set
WITH_PYTHON
=
ON
if
not
defined
ON_INFER
set
ON_INFER
=
ON
if
not
defined
WITH_INFERENCE_API_TEST
set
WITH_INFERENCE_API_TEST
=
ON
if
not
defined
WITH_CACHE
set
WITH_CACHE
=
ON
if
not
defined
WITH_TPCACHE
set
WITH_TPCACHE
=
ON
rem -------set cache build work directory-----------
if
"
%WITH_CACHE%
"
==
"OFF"
(
rmdir
build
/s/q
goto
:mkbuild
)
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
datetime
=
%%
#
set
day_now
=
%datetime
:
~
6
,
2
%
set
day_before
=-
1
set
/p
day_before
=<
day
.txt
if
%day_now%
NEQ
%day_before%
(
echo
%day_now%
>
day
.txt
type
day
.txt
rmdir
build
/s/q
)
git
diff
origin
/develop --stat --name-only
|
findstr
"cmake CMakeLists.txt paddle_build.bat"
if
%ERRORLEVEL%
EQU
0
(
rmdir
build
/s/q
)
:mkbuild
if
not
exist
build
(
mkdir
build
)
cd
/d
build
tree
.
dir
.
dir
paddle
\fluid\pybind\Release
rem ------initialize the
virtual
environment------
rem ------initialize the
python
environment------
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
set
PATH
=
%PYTHON_ROOT%
;
%PYTHON_ROOT%
\Scripts
;
%PATH%
...
...
@@ -38,7 +75,7 @@ rem %PYTHON_EXECUTABLE% -m pip install virtualenv
rem %PYTHON_EXECUTABLE% -m virtualenv paddle_winci
rem call paddle_winci\Scripts\activate.bat
rem ------pre install requirement----------
rem ------pre install
python
requirement----------
where
python
where
pip
pip
install
--upgrade
pip
--user
...
...
@@ -62,16 +99,6 @@ set CLCACHE_OBJECT_CACHE_TIMEOUT_MS=1000000
:: set maximum cache size to 20G
clcache
.exe
-M
21474836480
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"
if
not
defined
BRANCH
set
BRANCH
=
develop
if
not
defined
WITH_AVX
set
WITH_AVX
=
ON
if
not
defined
WITH_TESTING
set
WITH_TESTING
=
ON
if
not
defined
WITH_PYTHON
set
WITH_PYTHON
=
ON
if
not
defined
ON_INFER
set
ON_INFER
=
ON
if
not
defined
WITH_INFERENCE_API_TEST
set
WITH_INFERENCE_API_TEST
=
ON
if
not
defined
WITH_TPCACHE
set
WITH_TPCACHE
=
ON
rem ------set cache third_party------
set
cache_dir
=
%work
_dir:Paddle
=
cache
%
dir
%cache_dir%
...
...
@@ -418,6 +445,7 @@ taskkill /f /im rc.exe 2>NUL
wmic
process
where
name
=
"op_function_generator.exe"
call
terminate
2
>
NUL
taskkill
/f /im
python
.exe
2
>
NUL
call
paddle_winci
\Scripts\deactivate.bat
2
>
NUL
del
%PADDLE_WHL_FILE_WIN%
taskkill
/f /im
python
.exe
2
>
NUL
echo
Windows
CI
run
successfully
!
exit
/b
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录