Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
bcf5b629
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看板
提交
bcf5b629
编写于
3月 06, 2018
作者:
L
Luo Tao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine CMakeLists.txt and build_doc.sh
上级
4ca22097
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
14 addition
and
14 deletion
+14
-14
doc/CMakeLists.txt
doc/CMakeLists.txt
+2
-0
doc/v2/CMakeLists.txt
doc/v2/CMakeLists.txt
+2
-4
doc/v2/howto/optimization/gpu_profiling_cn.rst
doc/v2/howto/optimization/gpu_profiling_cn.rst
+3
-3
doc/v2/howto/optimization/gpu_profiling_en.rst
doc/v2/howto/optimization/gpu_profiling_en.rst
+3
-3
paddle/scripts/travis/build_doc.sh
paddle/scripts/travis/build_doc.sh
+4
-4
未找到文件。
doc/CMakeLists.txt
0 → 100644
浏览文件 @
bcf5b629
add_subdirectory
(
api
)
add_subdirectory
(
v2
)
doc/v2/CMakeLists.txt
浏览文件 @
bcf5b629
...
@@ -16,7 +16,7 @@ set(SPHINX_CACHE_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_doctrees")
...
@@ -16,7 +16,7 @@ set(SPHINX_CACHE_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_doctrees")
set
(
SPHINX_HTML_DIR_EN
"
${
CMAKE_CURRENT_BINARY_DIR
}
/en/html"
)
set
(
SPHINX_HTML_DIR_EN
"
${
CMAKE_CURRENT_BINARY_DIR
}
/en/html"
)
configure_file
(
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/templates/conf.py.en.in"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
../
templates/conf.py.en.in"
"
${
BINARY_BUILD_DIR_EN
}
/conf.py"
"
${
BINARY_BUILD_DIR_EN
}
/conf.py"
@ONLY
)
@ONLY
)
...
@@ -37,7 +37,7 @@ set(SPHINX_CACHE_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_doctrees")
...
@@ -37,7 +37,7 @@ set(SPHINX_CACHE_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_doctrees")
set
(
SPHINX_HTML_DIR_CN
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cn/html"
)
set
(
SPHINX_HTML_DIR_CN
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cn/html"
)
configure_file
(
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/templates/conf.py.cn.in"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
../
templates/conf.py.cn.in"
"
${
BINARY_BUILD_DIR_CN
}
/conf.py"
"
${
BINARY_BUILD_DIR_CN
}
/conf.py"
@ONLY
)
@ONLY
)
...
@@ -47,5 +47,3 @@ sphinx_add_target(paddle_docs_cn
...
@@ -47,5 +47,3 @@ sphinx_add_target(paddle_docs_cn
${
SPHINX_CACHE_DIR_CN
}
${
SPHINX_CACHE_DIR_CN
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
SPHINX_HTML_DIR_CN
}
)
${
SPHINX_HTML_DIR_CN
}
)
add_subdirectory
(
api
)
doc/v2/howto/optimization/gpu_profiling_cn.rst
浏览文件 @
bcf5b629
...
@@ -55,7 +55,7 @@ above profilers.
...
@@ -55,7 +55,7 @@ above profilers.
:code:`paddle/math/test` 目录中的 :code:`test_GpuProfiler` 就是用于展示上述分析工具的用法。
:code:`paddle/math/test` 目录中的 :code:`test_GpuProfiler` 就是用于展示上述分析工具的用法。
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:linenos:
:linenos:
...
@@ -83,7 +83,7 @@ program crashes when CPU version of PaddlePaddle invokes them.
...
@@ -83,7 +83,7 @@ program crashes when CPU version of PaddlePaddle invokes them.
1. 加入 :code:`REGISTER_TIMER_INFO` 和 :code:`printAllStatus` 函数(如高亮部分)。
1. 加入 :code:`REGISTER_TIMER_INFO` 和 :code:`printAllStatus` 函数(如高亮部分)。
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:emphasize-lines: 8-12,14
:emphasize-lines: 8-12,14
...
@@ -130,7 +130,7 @@ nvprof 工具
...
@@ -130,7 +130,7 @@ nvprof 工具
1. 将 :code:`REGISTER_GPU_PROFILER` 函数加到代码中(参考强调部分)。
1. 将 :code:`REGISTER_GPU_PROFILER` 函数加到代码中(参考强调部分)。
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:emphasize-lines: 6-7
:emphasize-lines: 6-7
...
...
doc/v2/howto/optimization/gpu_profiling_en.rst
浏览文件 @
bcf5b629
...
@@ -54,7 +54,7 @@ In this tutorial, we will focus on nvprof and nvvp.
...
@@ -54,7 +54,7 @@ In this tutorial, we will focus on nvprof and nvvp.
:code:`test_GpuProfiler` from :code:`paddle/math/tests` directory will be used to evaluate
:code:`test_GpuProfiler` from :code:`paddle/math/tests` directory will be used to evaluate
above profilers.
above profilers.
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:linenos:
:linenos:
...
@@ -80,7 +80,7 @@ As a simple example, consider the following:
...
@@ -80,7 +80,7 @@ As a simple example, consider the following:
1. Add :code:`REGISTER_TIMER_INFO` and :code:`printAllStatus` functions (see the emphasize-lines).
1. Add :code:`REGISTER_TIMER_INFO` and :code:`printAllStatus` functions (see the emphasize-lines).
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:emphasize-lines: 8-12,14
:emphasize-lines: 8-12,14
...
@@ -127,7 +127,7 @@ To use this command line profiler **nvprof**, you can simply issue the following
...
@@ -127,7 +127,7 @@ To use this command line profiler **nvprof**, you can simply issue the following
1. Add :code:`REGISTER_GPU_PROFILER` function (see the emphasize-lines).
1. Add :code:`REGISTER_GPU_PROFILER` function (see the emphasize-lines).
.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp
.. literalinclude:: ../../../
../
paddle/math/tests/test_GpuProfiler.cpp
:language: c++
:language: c++
:lines: 137-151
:lines: 137-151
:emphasize-lines: 6-7
:emphasize-lines: 6-7
...
...
paddle/scripts/travis/build_doc.sh
浏览文件 @
bcf5b629
...
@@ -12,8 +12,8 @@ make -j `nproc` copy_paddle_pybind
...
@@ -12,8 +12,8 @@ make -j `nproc` copy_paddle_pybind
make
-j
`
nproc
`
paddle_docs paddle_docs_cn paddle_api_docs
make
-j
`
nproc
`
paddle_docs paddle_docs_cn paddle_api_docs
# check websites for broken links
# check websites for broken links
linkchecker doc/en/html/index.html
linkchecker doc/
v2/
en/html/index.html
linkchecker doc/cn/html/index.html
linkchecker doc/
v2/
cn/html/index.html
linkchecker doc/api/en/html/index.html
linkchecker doc/api/en/html/index.html
# Parse Github URL
# Parse Github URL
...
@@ -55,8 +55,8 @@ function deploy_docs() {
...
@@ -55,8 +55,8 @@ function deploy_docs() {
set
+e
set
+e
rm
-rf
${
DIR
}
/doc
${
DIR
}
/doc_cn
${
DIR
}
/api_doc
rm
-rf
${
DIR
}
/doc
${
DIR
}
/doc_cn
${
DIR
}
/api_doc
set
-e
set
-e
cp
-r
../doc/cn/html
${
DIR
}
/doc_cn
cp
-r
../doc/
v2/
cn/html
${
DIR
}
/doc_cn
cp
-r
../doc/en/html
${
DIR
}
/doc
cp
-r
../doc/
v2/
en/html
${
DIR
}
/doc
cp
-r
../doc/api/en/html
${
DIR
}
/api_doc
cp
-r
../doc/api/en/html
${
DIR
}
/api_doc
git add
.
git add
.
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录