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
avx_docs V0.8.0b1
gangliao 8 years ago committed by qingqing01
parent 26cf303617
commit 12b619343b

@ -28,17 +28,51 @@ To compile the source code, your computer must be equipped with GCC >=4.6 or Cla
PaddlePaddle supports some build options. To enable it, first you need to install the related libraries. PaddlePaddle supports some build options. To enable it, first you need to install the related libraries.
<style type="text/css">
| Optional | Description | .tg {border-collapse:collapse;border-spacing:0;border-color:#ccc;}
| -------------------- | :--------------------------------------------------------------------------- | .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;}
| **WITH_GPU** | Compile with GPU mode. | .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;}
| **WITH_DOUBLE** | Compile with double precision floating-point, default: single precision. | .tg .tg-yw4l{vertical-align:top}
| **WITH_GLOG** | Compile with glog. If not found, default: an internal log implementation. | .tg .tg-9hbo{font-weight:bold;vertical-align:top}
| **WITH_GFLAGS** | Compile with gflags. If not found, default: an internal flag implementation. | </style>
| **WITH_TESTING** | Compile with gtest for PaddlePaddle's unit testing. | <table class="tg">
| **WITH_DOC** | Compile to generate PaddlePaddle's docs, default: disabled (OFF). | <tr>
| **WITH_SWIG_PY** | Compile with python predict API, default: disabled (OFF). | <th class="tg-yw4l">Optional</th>
| **WITH_STYLE_CHECK** | Compile with code style check, default: enabled (ON). | <th class="tg-yw4l">Description</th>
</tr>
<tr>
<td class="tg-9hbo">WITH_GPU</td>
<td class="tg-yw4l">Compile with GPU mode.</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_DOUBLE</td>
<td class="tg-yw4l">Compile with double precision floating-point, default: single precision.</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_GLOG</td>
<td class="tg-yw4l">Compile with glog. If not found, default: an internal log implementation.</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_GFLAGS</td>
<td class="tg-yw4l">Compile with gflags. If not found, default: an internal flag implementation.</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_TESTING</td>
<td class="tg-yw4l">Compile with gtest for PaddlePaddle's unit testing.</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_DOC</td>
<td class="tg-yw4l">Compile to generate PaddlePaddle's docs, default: disabled (OFF)</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_SWIG_PY</td>
<td class="tg-yw4l">Compile with python predict API, default: disabled (OFF).</td>
</tr>
<tr>
<td class="tg-9hbo">WITH_STYLE_CHECK</td>
<td class="tg-yw4l">Compile with code style check, default: enabled (ON).</td>
</tr>
</table>
**Note:** **Note:**
- The GPU version works best with Cuda Toolkit 7.5 and cuDNN v5. - The GPU version works best with Cuda Toolkit 7.5 and cuDNN v5.

Loading…
Cancel
Save