Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
e285234c
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
e285234c
编写于
8月 30, 2023
作者:
X
xuxinyi389
提交者:
GitHub
8月 30, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bugs of third party (#56670)
* fix bugs of tp * fix bugs of tp * fix bugs * fix bugs * fix bugs of md5
上级
8c154880
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
51 addition
and
3 deletion
+51
-3
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+51
-3
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
e285234c
...
@@ -402,8 +402,8 @@ if %day_now% NEQ %day_before% (
...
@@ -402,8 +402,8 @@ if %day_now% NEQ %day_before% (
)
)
echo
set
-ex
>
cache
.sh
echo
set
-ex
>
cache
.sh
echo
md5_content
=
$
(
cat
%work
_dir:\
=
/
%
/cmake/external
/
*
.cmake
^|
md5sum
^|
awk
'{print $1}'
)
>>
cache
.sh
echo
md5_content
=
$
(
cat
%work
_dir:\
=
/
%
/cmake/external
/
*
.cmake
^|
md5sum
^|
awk
'{print $1}'
)
$
(
git
submodule
status
^|
md5sum
^|
awk
'{print $1}'
)>>
cache
.sh
echo
echo
$
{
md5_content
}
^>
md5
.txt
>>
cache
.sh
echo
echo
$
{
md5_content
}
^>
md5
.txt
>>
cache.sh
%cache_dir%
\tools\busybox64.exe
cat
cache
.sh
%cache_dir%
\tools\busybox64.exe
cat
cache
.sh
%cache_dir%
\tools\busybox64.exe
bash
cache
.sh
%cache_dir%
\tools\busybox64.exe
bash
cache
.sh
...
@@ -415,6 +415,51 @@ if "%WITH_GPU%"=="ON" (
...
@@ -415,6 +415,51 @@ if "%WITH_GPU%"=="ON" (
)
else
(
)
else
(
set
sub_dir
=
cpu
set
sub_dir
=
cpu
)
)
@ECHO
ON
cd
/d
%work_dir%
python
-c
"import wget;wget.download('https://paddle-windows.bj.bcebos.com/third_party_code/
%sub_dir%
/
%md5
%
.tar.gz')"
2
>
nul
if
!ERRORLEVEL!
EQU
0
(
echo
Getting
source
code
of
third
party
:
extracting
...
tar
-xf
%md5
%
.tar.gz
del
%md5
%
.tar.gz
if
!errorlevel!
EQU
0
(
echo
Getting
source
code
of
third
party
:
successful
)
)
else
(
git
submodule
update
--init --recursive
set
BCE_FILE
=
%cache_dir%
\bce
-python-sdk-new
\BosClient.py
echo
Uploading
source
code
of
third_party
:
checking
bce
...
if
not
exist
%cache_dir%
\bce
-python-sdk-new
(
echo
There
is
no
bce
in
this
PC
,
will
install
bce
.
cd
/d
%cache_dir%
echo
Download
package
from
https
://xly
-devops
.bj.bcebos.com/home/bos_new.tar.gz
python
-c
"import wget;wget.download('https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz')"
python
-c
"import shutil;shutil.unpack_archive('bos_new.tar.gz', extract_dir='./bce-python-sdk-new',format='gztar')"
)
python
-m
pip
install
pycryptodome
python
-m
pip
install
bce
-python-sdk
==
0
.8.74
if
!errorlevel!
EQU
0
(
cd
/d
%work_dir%
echo
Uploading
source
code
of
third
party
:
compressing
...
tar
-zcf
%md5
%
.tar.gz ./third_party ./.git/modules
if
!errorlevel!
EQU
0
(
echo
Uploading
source
code
of
third
party
:
uploading
...
python
!BCE_FILE!
%md5
%
.tar.gz
paddle
-windows/third
_party_code/
%sub_dir%
1
>
nul
if
!errorlevel!
EQU
0
(
echo
Upload
source
code
of
third
party
%md5
%
to
bos
paddle
-windows/third
_party_code/
%sub_dir%
successfully
.
)
else
(
echo
Failed
upload
source
code
of
third
party
to
bos
,
reason
:
upload
failed
.
)
)
else
(
echo
Failed
upload
source
code
of
third
party
to
bos
,
reason
:
compress
failed
.
)
del
%md5
%
.tar.gz
)
else
(
echo
Failed
upload
source
code
of
third
party
to
bos
,
reason
:
install
bce
failed
.
)
)
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
%
...
@@ -450,7 +495,9 @@ if not exist %THIRD_PARTY_PATH% (
...
@@ -450,7 +495,9 @@ if not exist %THIRD_PARTY_PATH% (
echo
Found
reusable
third_party
cache
in
%THIRD_PARTY_PATH%
,
will
reuse
it
.
echo
Found
reusable
third_party
cache
in
%THIRD_PARTY_PATH%
,
will
reuse
it
.
)
)
:cmake
_impl
:cmake
_impl
cd
/d
%work_dir%
\
%BUILD_DIR%
echo
cmake
..
-G
%GENERATOR%
-DCMAKE
_BUILD_TYPE
=
Release
-DWITH
_AVX
=
%WITH_AVX%
-DWITH
_GPU
=
%WITH_GPU%
-DWITH
_MKL
=
%WITH_MKL%
^
echo
cmake
..
-G
%GENERATOR%
-DCMAKE
_BUILD_TYPE
=
Release
-DWITH
_AVX
=
%WITH_AVX%
-DWITH
_GPU
=
%WITH_GPU%
-DWITH
_MKL
=
%WITH_MKL%
^
-DWITH
_TESTING
=
%WITH_TESTING%
-DWITH
_PYTHON
=
%WITH_PYTHON%
-DPYTHON
_EXECUTABLE
=
%PYTHON_EXECUTABLE%
-DON
_INFER
=
%ON_INFER%
^
-DWITH
_TESTING
=
%WITH_TESTING%
-DWITH
_PYTHON
=
%WITH_PYTHON%
-DPYTHON
_EXECUTABLE
=
%PYTHON_EXECUTABLE%
-DON
_INFER
=
%ON_INFER%
^
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
...
@@ -582,8 +629,9 @@ if "%UPLOAD_TP_FILE%"=="ON" (
...
@@ -582,8 +629,9 @@ if "%UPLOAD_TP_FILE%"=="ON" (
echo
Download
package
from
https
://xly
-devops
.bj.bcebos.com/home/bos_new.tar.gz
echo
Download
package
from
https
://xly
-devops
.bj.bcebos.com/home/bos_new.tar.gz
python
-c
"import wget;wget.download('https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz')"
python
-c
"import wget;wget.download('https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz')"
python
-c
"import shutil;shutil.unpack_archive('bos_new.tar.gz', extract_dir='./bce-python-sdk-new',format='gztar')"
python
-c
"import shutil;shutil.unpack_archive('bos_new.tar.gz', extract_dir='./bce-python-sdk-new',format='gztar')"
python
-m
pip
install
bce
-python-sdk
==
0
.8.74
)
)
python
-m
pip
install
pycryptodome
python
-m
pip
install
bce
-python-sdk
==
0
.8.74
if
!errorlevel!
EQU
0
(
if
!errorlevel!
EQU
0
(
cd
/d
%THIRD_PARTY_HOME%
cd
/d
%THIRD_PARTY_HOME%
echo
Uploading
third_party
:
compressing
...
echo
Uploading
third_party
:
compressing
...
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录