Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
68911342
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看板
未验证
提交
68911342
编写于
9月 27, 2021
作者:
S
Sing_chan
提交者:
GitHub
9月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cherry-pick] fix third_party cache bugs (#36048)
cherry-pick #35858、#35895
上级
2de7a7f5
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
16 addition
and
7 deletion
+16
-7
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+16
-7
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
68911342
...
@@ -76,6 +76,8 @@ if not defined NIGHTLY_MODE set PRECISION_TEST=OFF
...
@@ -76,6 +76,8 @@ if not defined NIGHTLY_MODE set PRECISION_TEST=OFF
if
not
defined
retry_times
set
retry_times
=
3
if
not
defined
retry_times
set
retry_times
=
3
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
if
not
defined
BUILD_DIR
set
BUILD_DIR
=
build
if
not
defined
BUILD_DIR
set
BUILD_DIR
=
build
set
task_name
=
%
1
set
UPLOAD_TP_FILE
=
OFF
rem ------initialize the python environment------
rem ------initialize the python environment------
set
PYTHON_EXECUTABLE
=
%PYTHON_ROOT%
\python.exe
set
PYTHON_EXECUTABLE
=
%PYTHON_ROOT%
\python.exe
...
@@ -363,17 +365,24 @@ echo echo ${md5_content}^>md5.txt >> cache.sh
...
@@ -363,17 +365,24 @@ echo echo ${md5_content}^>md5.txt >> cache.sh
%cache_dir%
\tools\busybox64.exe
bash
cache
.sh
%cache_dir%
\tools\busybox64.exe
bash
cache
.sh
set
/p
md5
=<
md5
.txt
set
/p
md5
=<
md5
.txt
echo
%task_name%
|
findstr
build
>
nul
&&
(
set
THIRD_PARTY_HOME
=
%cache
_dir:\
=
/
%
/third
_party
set
THIRD_PARTY_PATH
=
!THIRD_PARTY_HOME!
/
%md5
%
echo
%task_name%
is
a
whl
-build
task
,
will
only
reuse
local
third_party
cache
.
goto
:cmake
_impl
)
||
(
echo
%task_name%
is
a
PR
-CI-Windows
task
,
will
try
to
reuse
bos
and
local
third_party
cache
both
.
)
if
"
%WITH_GPU%
"
==
"ON"
(
if
"
%WITH_GPU%
"
==
"ON"
(
for
/F
"delims="
%%
#
in
(
'nvcc --version
^|
findstr V1
'
)
do
set
cuda_version
=
%%
#
for
/F
%%
#
in
(
'dir /b /d "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\"
'
)
do
set
cuda_version
=
%%
#
set
cuda_version
=
!
cuda_version
:
~-
7
,
4
!
set
cuda_version
=
!
cuda_version
:
~-
4
!
set
sub_dir
=
cuda
!
cuda_version
:.
=
!
set
sub_dir
=
cuda
!
cuda_version
:.
=
!
)
else
(
)
else
(
set
sub_dir
=
cpu
set
sub_dir
=
cpu
)
)
set
THIRD_PARTY_HOME
=
%cache
_dir:\
=
/
%
/third
_party/
%sub_dir%
set
THIRD_PARTY_HOME
=
%cache
_dir:\
=
/
%
/third
_party/
%sub_dir%
set
THIRD_PARTY_PATH
=
%THIRD_PARTY_HOME%
/
%md5
%
set
THIRD_PARTY_PATH
=
%THIRD_PARTY_HOME%
/
%md5
%
set
UPLOAD_TP_FILE
=
OFF
if
not
exist
%THIRD_PARTY_PATH%
(
if
not
exist
%THIRD_PARTY_PATH%
(
echo
There
is
no
usable
third_party
cache
in
%THIRD_PARTY_PATH%
,
will
download
from
bos
.
echo
There
is
no
usable
third_party
cache
in
%THIRD_PARTY_PATH%
,
will
download
from
bos
.
...
@@ -397,7 +406,7 @@ if not exist %THIRD_PARTY_PATH% (
...
@@ -397,7 +406,7 @@ if not exist %THIRD_PARTY_PATH% (
if
not
exist
%THIRD_PARTY_PATH%
(
set
UPLOAD_TP_FILE
=
ON
)
if
not
exist
%THIRD_PARTY_PATH%
(
set
UPLOAD_TP_FILE
=
ON
)
cd
%work_dir%
\
%BUILD_DIR%
cd
%work_dir%
\
%BUILD_DIR%
)
else
(
)
else
(
echo
Found
reusable
third_party
cache
locally
,
will
reuse
it
.
echo
Found
reusable
third_party
cache
in
%THIRD_PARTY_PATH%
,
will
reuse
it
.
)
)
:cmake
_impl
:cmake
_impl
...
@@ -512,8 +521,8 @@ if %ERRORLEVEL% NEQ 0 (
...
@@ -512,8 +521,8 @@ if %ERRORLEVEL% NEQ 0 (
)
)
)
)
set
BCE_FILE
=
%cache_dir%
\bce
-python-sdk
-
0
.8.33\BosClient.py
if
"
%UPLOAD_TP_FILE%
"
==
"ON"
(
if
%UPLOAD_TP_FILE%
==
ON
(
set
BCE_FILE
=
%cache_dir%
\bce
-python-sdk
-
0
.8.33\BosClient.py
echo
Uploading
third_party
:
checking
bce
...
echo
Uploading
third_party
:
checking
bce
...
if
not
exist
%cache_dir%
\bce
-python-sdk
-
0
.8.33
(
if
not
exist
%cache_dir%
\bce
-python-sdk
-
0
.8.33
(
echo
There
is
no
bce
in
this
PC
,
will
install
bce
.
echo
There
is
no
bce
in
this
PC
,
will
install
bce
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录