Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
61e51c18
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
61e51c18
编写于
8月 03, 2021
作者:
zhouweiwei2014
提交者:
GitHub
8月 03, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polish sccahce (#34350)
上级
9e0bb91c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
12 addition
and
11 deletion
+12
-11
paddle/fluid/framework/CMakeLists.txt
paddle/fluid/framework/CMakeLists.txt
+1
-1
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+11
-10
未找到文件。
paddle/fluid/framework/CMakeLists.txt
浏览文件 @
61e51c18
...
...
@@ -405,7 +405,7 @@ configure_file(commit.h.in commit.h)
# Adapt to custom op mechanism: Include the header files related to the data type
# to avoid exposing the path of the underlying file
include_directories
(
${
PADDLE_SOURCE_DIR
}
/paddle/fluid/platform
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
/extension/include
)
include_directories
(
${
PADDLE_SOURCE_DIR
}
/paddle/fluid
/extension/include
)
if
(
WITH_ROCM
)
hip_library
(
custom_tensor SRCS ../extension/src/ext_tensor.cc DEPS lod_tensor memory enforce
)
...
...
paddle/scripts/paddle_build.bat
浏览文件 @
61e51c18
...
...
@@ -162,6 +162,8 @@ if "%WITH_SCCACHE%"=="ON" (
sccache
--stop-server
2
>
NUL
if
not
exist
D
:\sccache
mkdir
D
:\sccache
set
SCCACHE_DIR
=
D
:\sccache\.cache
::
sccache
will
shut
down
if
a
source
file
takes
more
than
10
mins
to
compile
set
SCCACHE_IDLE_TIMEOUT
=
0
set
SCCACHE_CACHE_SIZE
=
30
G
set
SCCACHE_ERROR_LOG
=
D
:\sccache\sccache_log.txt
set
SCCACHE_LOG
=
quiet
...
...
@@ -500,15 +502,6 @@ for /F %%# in ('wmic os get localdatetime^|findstr 20') do set end=%%#
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"Build"
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
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
)
%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
"
...
...
@@ -527,7 +520,6 @@ if %ERRORLEVEL% NEQ 0 (
exit
/b
1
)
set
CUDA_VISIBLE_DEVICES
=
0
python
%work_dir%
\paddle\scripts\installation_validate.py
goto
:eof
...
...
@@ -633,6 +625,15 @@ set end=%end:~4,10%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
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
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
)
cd
%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
%TENSORRT_ROOT%
/include
%TENSORRT_ROOT%
/lib
%MSVC_STATIC_CRT%
goto
:eof
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录