Skip to content

Commit 12b6193

Browse files
gangliaoqingqing01
authored andcommitted
Update build docs (#148)
* Add automatic check AVX in CMake * Add indent in FindAVX.cmake * Revise table format and some words in build docs * Update build docs
1 parent 26cf303 commit 12b6193

File tree

1 file changed

+45
-11
lines changed

1 file changed

+45
-11
lines changed

doc/build/build_from_source.md

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,51 @@ To compile the source code, your computer must be equipped with GCC >=4.6 or Cla
2828

2929
PaddlePaddle supports some build options. To enable it, first you need to install the related libraries.
3030

31-
32-
| Optional | Description |
33-
| -------------------- | :--------------------------------------------------------------------------- |
34-
| **WITH_GPU** | Compile with GPU mode. |
35-
| **WITH_DOUBLE** | Compile with double precision floating-point, default: single precision. |
36-
| **WITH_GLOG** | Compile with glog. If not found, default: an internal log implementation. |
37-
| **WITH_GFLAGS** | Compile with gflags. If not found, default: an internal flag implementation. |
38-
| **WITH_TESTING** | Compile with gtest for PaddlePaddle's unit testing. |
39-
| **WITH_DOC** | Compile to generate PaddlePaddle's docs, default: disabled (OFF). |
40-
| **WITH_SWIG_PY** | Compile with python predict API, default: disabled (OFF). |
41-
| **WITH_STYLE_CHECK** | Compile with code style check, default: enabled (ON). |
31+
<style type="text/css">
32+
.tg {border-collapse:collapse;border-spacing:0;border-color:#ccc;}
33+
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;border-top-width:1px;border-bottom-width:1px;}
34+
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;border-top-width:1px;border-bottom-width:1px;}
35+
.tg .tg-yw4l{vertical-align:top}
36+
.tg .tg-9hbo{font-weight:bold;vertical-align:top}
37+
</style>
38+
<table class="tg">
39+
<tr>
40+
<th class="tg-yw4l">Optional</th>
41+
<th class="tg-yw4l">Description</th>
42+
</tr>
43+
<tr>
44+
<td class="tg-9hbo">WITH_GPU</td>
45+
<td class="tg-yw4l">Compile with GPU mode.</td>
46+
</tr>
47+
<tr>
48+
<td class="tg-9hbo">WITH_DOUBLE</td>
49+
<td class="tg-yw4l">Compile with double precision floating-point, default: single precision.</td>
50+
</tr>
51+
<tr>
52+
<td class="tg-9hbo">WITH_GLOG</td>
53+
<td class="tg-yw4l">Compile with glog. If not found, default: an internal log implementation.</td>
54+
</tr>
55+
<tr>
56+
<td class="tg-9hbo">WITH_GFLAGS</td>
57+
<td class="tg-yw4l">Compile with gflags. If not found, default: an internal flag implementation.</td>
58+
</tr>
59+
<tr>
60+
<td class="tg-9hbo">WITH_TESTING</td>
61+
<td class="tg-yw4l">Compile with gtest for PaddlePaddle's unit testing.</td>
62+
</tr>
63+
<tr>
64+
<td class="tg-9hbo">WITH_DOC</td>
65+
<td class="tg-yw4l">Compile to generate PaddlePaddle's docs, default: disabled (OFF)</td>
66+
</tr>
67+
<tr>
68+
<td class="tg-9hbo">WITH_SWIG_PY</td>
69+
<td class="tg-yw4l">Compile with python predict API, default: disabled (OFF).</td>
70+
</tr>
71+
<tr>
72+
<td class="tg-9hbo">WITH_STYLE_CHECK</td>
73+
<td class="tg-yw4l">Compile with code style check, default: enabled (ON).</td>
74+
</tr>
75+
</table>
4276

4377
**Note:**
4478
- The GPU version works best with Cuda Toolkit 7.5 and cuDNN v5.

0 commit comments

Comments
 (0)