Update compile doc

This commit is contained in:
jiangjiajun
2022-08-15 13:41:21 +00:00
parent a016ef99ce
commit 470f0ebfd6
3 changed files with 26 additions and 7 deletions

View File

@@ -9,9 +9,10 @@
| 选项 | 作用 | 备注 |
|:---- | :--- | :--- |
| ENABLE_ORT_BACKEND | 启用ONNXRuntime推理后端默认ON | - |
| WITH_GPU | 是否开启GPU使用默认OFF | 当设为TRUE时须通过CUDA_DIRECTORY指定cuda目录如/usr/local/cuda; Mac上不支持设为ON |
| ENABLE_TRT_BACKEND | 启用TensorRT推理后端默认OFF | 当设为TRUE时需通过TRT_DIRECTORY指定tensorrt目录如/usr/downloads/TensorRT-8.4.0.1; Mac上不支持设为ON|
| ENABLE_VISION | 编译集成视觉模型模块包括OpenCV的编译集成默认OFF | - |
| ENABLE_PADDLE_FRONTEND | 编译集成Paddle2ONNX默认ON | - |
| ENABLE_DEBUG | 当为ON时支持输出DEBUG信息但可能会有性能损耗默认OFF | - |
| ENABLE_ORT_BACKEND | 启用ONNXRuntime推理后端默认ON | 默认支持CPU开启WITH_GPU后同时支持GPU |
| ENABLE_PADDLE_BACKEND | 启用Paddle Inference推理后端默认OFF | 默认支持CPU开启WITH_GPU后同时支持GPU |
| ENABLE_TRT_BACKEND | 启用TensorRT推理后端默认OFF | 仅支持GPU |
| WITH_GPU | 是否开启GPU使用默认OFF | 当设为TRUE编译后将支持Nvidia GPU部署 |
| CUDA_DIRECTORY | 指定编译时的CUDA路径默认为/usr/local/cuda |
| TRT_DIRECTORY | 当启用TensorRT推理后端时需通过此参数指定TensorRT路径 |
| ENABLE_VISION | 启用视觉模型模块默认为ON |

View File

@@ -1,5 +1,13 @@
# Linux & Mac编译
## 环境依赖
- cmake >= 3.12
- g++ >= 8.2
- cuda >= 11.2 (当WITH_GPU=ON)
- cudnn >= 11.2 (当WITH_GPU=ON)
- TensorRT >= 8.4 (当ENABLE_TRT_BACKEND=ON)
## 编译C++
```
git clone https://github.com/PaddlePaddle/FastDeploy.git
@@ -27,4 +35,4 @@ python setup.py bdist_wheel
```
编译后的wheel包即在当前目录下的`dist`目录中
编译选项说明参考[编译指南](./README.md)
更多编译选项说明参考[编译指南](./README.md)

View File

@@ -1,5 +1,13 @@
# Windows编译
## 环境依赖
- cmake >= 3.12
- g++ >= 8.2
- cuda >= 11.2 (当WITH_GPU=ON)
- cudnn >= 11.2 (当WITH_GPU=ON)
- TensorRT >= 8.4 (当ENABLE_TRT_BACKEND=ON)
## 获取代码
```
git clone https://github.com/PaddlePaddle/FastDeploy.git
@@ -34,3 +42,5 @@ set ENABLE_VISION=ON
python setup.py build
python setup.py bdist_wheel
```
更多编译选项说明参考[编译指南](./README.md)