File tree Expand file tree Collapse file tree 11 files changed +3
-125
lines changed
hardware_support/xpu_docs Expand file tree Collapse file tree 11 files changed +3
-125
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 29
29
30
30
+ 操作步骤:
31
31
32
- 1 . Python2 情况下,使用如下命令安装 PaddlePaddle。
33
-
34
- ``` bash
35
- pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple/
36
- ```
37
-
38
- 2 . Python3 情况下,使用如下命令安装 PaddlePaddle。
32
+ 1 . 使用如下命令安装 PaddlePaddle。
39
33
40
34
``` bash
41
35
pip3 install paddlepaddle -i https://mirror.baidu.com/pypi/simple/
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ sudo apt-get install python3-pip python3-dev python-virtualenv
111
111
112
112
Then create a Virtualenv environment by one of following command:
113
113
```
114
- virtualenv ~/vdl # for Python2.7
115
114
virtualenv -p python3 ~/vdl for Python 3.x
116
115
```
117
116
Original file line number Diff line number Diff line change @@ -157,24 +157,6 @@ cmake .. -DPY_VERSION=3.6 \
157
157
make -j20
158
158
```
159
159
160
- Python2
161
-
162
- ```
163
- cmake .. -DPY_VERSION=2.7 \
164
- -DCMAKE_BUILD_TYPE=Release \
165
- -DWITH_GPU=OFF \
166
- -DWITH_XPU=ON \
167
- -DON_INFER=ON \
168
- -DWITH_PYTHON=ON \
169
- -DWITH_AVX=ON \
170
- -DWITH_MKL=ON \
171
- -DWITH_MKLDNN=ON \
172
- -DWITH_XPU_BKCL=ON \
173
- -DWITH_DISTRIBUTE=ON \
174
- -DWITH_NCCL=OFF
175
-
176
- make -j20
177
- ```
178
160
179
161
** 飞腾 CPU+昆仑 XPU+麒麟 V10 系统**
180
162
Original file line number Diff line number Diff line change 5
5
6
6
> 请[ 安装 nccl2] ( https://developer.nvidia.com/nccl/nccl-download )
7
7
8
- - CentOS6 下如何编译 python2.7 为共享库?
9
-
10
- > 使用以下指令:
11
-
12
- ./configure --prefix=/usr/local/python2.7 --enable-shared
13
- make && make install
14
-
15
8
<!-- TODO please add more F&Q parts here-->
16
9
17
10
- Ubuntu18.04 下 libidn11 找不到?
Original file line number Diff line number Diff line change 3
3
4
4
# ** FAQ**
5
5
6
- - How to compile python2.7 as a shared library under CentOS6?
7
-
8
- > Use the following instructions:
9
-
10
-
11
-
12
- ./configure --prefix=/usr/local/python2.7 --enable-shared
13
- make && make install
14
-
15
-
16
6
- Ubuntu18.04 under libidn11 can not be found?
17
7
18
8
> Use the following instructions:
Original file line number Diff line number Diff line change 86
86
87
87
>具体编译选项含义请参见[编译选项表](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#Compile)
88
88
89
- For Python2:
90
- ```
91
- cmake .. -DPY_VERSION=2 -DPYTHON_EXECUTABLE=`which python2` -DWITH_ARM=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF
92
- ```
93
-
94
89
For Python3:
95
90
```
96
91
cmake .. -DPY_VERSION=3 -DPYTHON_EXECUTABLE=`which python3` -DWITH_ARM=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF
Original file line number Diff line number Diff line change 101
101
102
102
>具体编译选项含义请参见[编译选项表](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#Compile)
103
103
104
- For Python2:
105
- ```
106
- cmake .. -DPY_VERSION=2 -DPYTHON_EXECUTABLE=`which python2` -DWITH_MIPS=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF -DWITH_MKL=OFF
107
- ```
108
-
109
104
For Python3:
110
105
```
111
106
cmake .. -DPY_VERSION=3 -DPYTHON_EXECUTABLE=`which python3` -DWITH_MIPS=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF -DWITH_MKL=OFF
Original file line number Diff line number Diff line change 66
66
67
67
>具体编译选项含义请参见[编译选项表](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#Compile)
68
68
69
- For Python2:
70
- ```
71
- cmake .. -DPY_VERSION=2 -DPYTHON_EXECUTABLE=`which python2` -DWITH_MKL=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_PYTHON=ON -DWITH_XBYAK=OFF -DWITH_SW=ON -DCMAKE_CXX_FLAGS="-Wno-error -w" -DWITH_RCCL=OFF
72
- ```
73
69
For Python3:
74
70
```
75
71
cmake .. -DPY_VERSION=3 -DPYTHON_EXECUTABLE=`which python3` -DWITH_MKL=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_PYTHON=ON -DWITH_XBYAK=OFF -DWITH_SW=ON -DCMAKE_CXX_FLAGS="-Wno-error -w" -DWITH_RCCL=OFF
86
82
11. 在当前机器或目标机器安装编译好的`.whl`包:
87
83
88
84
```
89
- python2 -m pip install -U(whl 包的名字)`或` python3 -m pip install -U(whl 包的名字)
85
+ python3 -m pip install -U(whl 包的名字)
90
86
```
91
87
92
88
恭喜,至此您已完成 PaddlePaddle 在 FT 环境下的编译安装。
Original file line number Diff line number Diff line change 90
90
91
91
>具体编译选项含义请参见[编译选项表](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#Compile)
92
92
93
- For Python2:
94
- ```
95
- cmake .. -DPY_VERSION=2 -DPYTHON_EXECUTABLE=`which python2` -DWITH_MKL=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_PYTHON=ON
96
- ```
97
93
For Python3:
98
94
```
99
95
cmake .. -DPY_VERSION=3 -DPYTHON_EXECUTABLE=`which python3` -DWITH_MKL=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_PYTHON=ON
110
106
11. 在当前机器或目标机器安装编译好的`.whl`包:
111
107
112
108
```
113
- python2 -m pip install -U(whl 包的名字)`或` python3 -m pip install -U(whl 包的名字)
109
+ python3 -m pip install -U(whl 包的名字)
114
110
```
115
111
116
112
恭喜,至此您已完成 PaddlePaddle 在 FT 环境下的编译安装。
You can’t perform that action at this time.
0 commit comments