wangkuiyi-patch-2
weixing02 8 years ago
parent 909d381995
commit 62373edb0c

@ -100,13 +100,10 @@ PaddlePaddle.org工具可以配合Docker使用需要在系统里先安装好D
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON
# 如果只需要构建使用文档,则执行以下命令 # 如果只需要构建使用文档,则执行以下命令
make -j $processors gen_proto_py make -j $processors paddle_docs
make -j $processors paddle_docs paddle_docs_cn
# 如果只需要构建API则执行以下命令 # 如果只需要构建API则执行以下命令
make -j $processors gen_proto_py framework_py_proto make -j $processors paddle_apis
make -j $processors copy_paddle_pybind
make -j $processors paddle_api_docs
其中$processors代表启动和CPU核一样多的进程来并行编译可以根据本机的CPU核数设置相应的值。 其中$processors代表启动和CPU核一样多的进程来并行编译可以根据本机的CPU核数设置相应的值。

@ -96,21 +96,18 @@ If you do not wish to use Docker, you can also use the following commands to dir
.. code-block:: bash .. code-block:: bash
mkdir paddle
cd paddle
git clone https://github.com/PaddlePaddle/Paddle.git git clone https://github.com/PaddlePaddle/Paddle.git
cd Paddle
mkdir -p build mkdir -p build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON
# If you only need to build documents, use the following commands # If you only need to build documents, use the following commands
make -j $processors gen_proto_py make -j $processors paddle_docs
make -j $processors paddle_docs paddle_docs_cn
# If you only need to build APIs, use the following commands # If you only need to build APIs, use the following commands
make -j $processors gen_proto_py framework_py_proto make -j $processors paddle_apis
make -j $processors copy_paddle_pybind
make -j $processors paddle_api_docs
$processors indicates that as many processes as the CPU cores are started to compile in parallel. It should be set according to the number of CPU cores of your machine. $processors indicates that as many processes as the CPU cores are started to compile in parallel. It should be set according to the number of CPU cores of your machine.

Loading…
Cancel
Save