Skip to content

Commit

Permalink
[fix] fix some typos and style (PaddlePaddle#6422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored Dec 22, 2023
1 parent 908133d commit a051867
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 99 deletions.
66 changes: 33 additions & 33 deletions docs/install/compile/linux-compile-by-make.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,49 +256,49 @@ uname -m && cat /etc/*release
#### 4. 安装必要的工具
`bzip2`以及`make`:
`bzip2`以及`make`:
```
yum install -y bzip2 make
```
```
yum install -y bzip2 make
```
or
or
```
apt install -y bzip2 make
```
```
apt install -y bzip2 make
```
cmake 需要 3.18 以上:
cmake 需要 3.18 以上:
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
```
```
PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
```
gcc 需要 8.2 以上:
gcc 需要 8.2 以上:
```
wget -q wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install
```
```
wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install
```
#### 5. 我们支持使用 virtualenv 进行编译安装,首先请使用以下命令创建一个名为`paddle-venv`的虚环境:
Expand Down
66 changes: 33 additions & 33 deletions docs/install/compile/linux-compile-by-make_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,48 +253,48 @@ uname -m && cat /etc/*release
#### 4. Install the necessary tools
`bzip2` and `make`:
```
yum install -y bzip2 make
```
`bzip2` and `make`:
```
yum install -y bzip2 make
```
or
or
```
apt install -y bzip2 make
```
```
apt install -y bzip2 make
```
cmake requires version 3.18, we recommend that you use 3.18.0 version:
cmake requires version 3.18, we recommend that you use 3.18.0 version:
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
```
```
PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
```
gcc requires version 8.2:
gcc requires version 8.2:
```
wget -q wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install
```
```
wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install
```
#### 5. We support compiling and installing with virtualenv. First, create a virtual environment called `paddle-venv` with the following command:
Expand Down
67 changes: 34 additions & 33 deletions docs/install/compile/linux-compile-by-ninja.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,41 +180,42 @@ uname -m && cat /etc/*release
rpm -ivh libnccl-static-2.10.3-1+cuda11.4.x86_64.rpm
```
#### 4. 安装必要的工具
`bzip2`以及`make`:
```
yum install -y bzip2 make
```
`bzip2`以及`make`:
```
yum install -y bzip2 make
```
or
or
```
apt install -y bzip2 make
```
cmake 需要 3.18 以上:
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
PATH=/home/cmake-3.16.0-Linux-x86_64/bin:$PATH
```
gcc 需要 8.2 以上:
```
wget -q wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install
```
```
apt install -y bzip2 make
```
cmake 需要 3.18 以上:
```
wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz
```
```
tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz
```
```
rm cmake-3.18.0-Linux-x86_64.tar.gz
```
```
PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
```
gcc 需要 8.2 以上:
```
wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j8 && make install

```
#### 5. 我们支持使用 virtualenv 进行编译安装,首先请使用以下命令创建一个名为`paddle-venv`的虚环境:
* a. 安装 Python-dev:
(请参照 Python 官方流程安装)
Expand Down

0 comments on commit a051867

Please sign in to comment.