From e69805f6a446fe5f986412bfb9d155b612504da3 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Mon, 11 Nov 2019 01:38:01 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20doc=20:=20x86=5Fcompile=20demo=E3=80=81IO?= =?UTF-8?q?S=20compiling=E3=80=81source=5Fcompiling=20link=20(#2409)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _all_pages/develop/source_compile.md | 6 +++++- _all_pages/develop/x86.md | 3 +-- _all_pages/v2.0.0/source_compile.md | 5 ++++- _all_pages/v2.0.0/x86.md | 3 +-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/_all_pages/develop/source_compile.md b/_all_pages/develop/source_compile.md index 224da75836..bacfe593d9 100644 --- a/_all_pages/develop/source_compile.md +++ b/_all_pages/develop/source_compile.md @@ -279,7 +279,10 @@ git checkout --arm_abi=armv8 \ ios ``` +**注意:mac环境编译IOS 时,cmake版本需要高于cmake 3.15;mac环境上编译Android时,cmake版本需要设置为cmake 3.10。** + ios tiny publish支持的编译选项: + * `--arm_os`: 可选ios或者ios64 * `--arm_abi`: 可选armv7和armv8(**注意**:当`arm_os=ios`时只能选择`arm_abi=armv7`,当`arm_os=ios64`时只能选择`arm_abi=armv8`) * 如果mac编译过程中报错:"Invalid CMAKE_DEVELOPER_ROOT: does not exist", 运行: @@ -287,6 +290,7 @@ ios tiny publish支持的编译选项: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer ``` ##### ARMLinux + ```shell ./lite/tools/build.sh \ --arm_os=armlinux \ @@ -397,4 +401,4 @@ rm -rf third-party 之后再根据本文档,进行后续编译时,便会忽略第三方依赖对应的`submodule`,改为下载第三方压缩包。 -**注意:该加速方法只对arm平台的移动端(android/armlinux/ios)编译有效,无法加速server平台(x86/cuda)的第三方库编译。所以当**[编译cuda 预测库](../cuda.md)**和**[编译x86预测库](../x86.md)**时,需要保证良好的网络环境。** +**注意:该加速方法只对arm平台的移动端(android/armlinux/ios)编译有效,无法加速server平台(x86/cuda)的第三方库编译。所以当**[编译cuda 预测库](../cuda)**和**[编译x86预测库](../x86)**时,需要保证良好的网络环境。** \ No newline at end of file diff --git a/_all_pages/develop/x86.md b/_all_pages/develop/x86.md index edcc479919..1130d20d6a 100644 --- a/_all_pages/develop/x86.md +++ b/_all_pages/develop/x86.md @@ -72,8 +72,7 @@ void RunModel() { config.set_param_file(FLAGS_model_dir + "params"); config.set_valid_places({ - lite_api::Place{TARGET(kX86), PRECISION(kFloat)}, - lite_api::Place{TARGET(kHost), PRECISION(kFloat)} + lite_api::Place{TARGET(kX86), PRECISION(kFloat)} }); // 2. Create PaddlePredictor by CxxConfig diff --git a/_all_pages/v2.0.0/source_compile.md b/_all_pages/v2.0.0/source_compile.md index 806dd85b87..6732c6f008 100644 --- a/_all_pages/v2.0.0/source_compile.md +++ b/_all_pages/v2.0.0/source_compile.md @@ -279,7 +279,10 @@ git checkout --arm_abi=armv8 \ ios ``` +**注意:mac环境编译IOS 时,cmake版本需要高于cmake 3.15;mac环境上编译Android时,cmake版本需要设置为cmake 3.10。** + ios tiny publish支持的编译选项: + * `--arm_os`: 可选ios或者ios64 * `--arm_abi`: 可选armv7和armv8(**注意**:当`arm_os=ios`时只能选择`arm_abi=armv7`,当`arm_os=ios64`时只能选择`arm_abi=armv8`) * 如果mac编译过程中报错:"Invalid CMAKE_DEVELOPER_ROOT: does not exist", 运行: @@ -396,4 +399,4 @@ rm -rf third-party 之后再根据本文档,进行后续编译时,便会忽略第三方依赖对应的`submodule`,改为下载第三方压缩包。 -**注意:该加速方法只对arm平台的移动端(android/armlinux/ios)编译有效,无法加速server平台(x86/cuda)的第三方库编译。所以当**[编译cuda 预测库](../cuda.md)**和**[编译x86预测库](../x86.md)**时,需要保证良好的网络环境。** \ No newline at end of file +**注意:该加速方法只对arm平台的移动端(android/armlinux/ios)编译有效,无法加速server平台(x86/cuda)的第三方库编译。所以当**[编译cuda 预测库](../cuda)**和**[编译x86预测库](../x86)**时,需要保证良好的网络环境。** \ No newline at end of file diff --git a/_all_pages/v2.0.0/x86.md b/_all_pages/v2.0.0/x86.md index edcc479919..1130d20d6a 100644 --- a/_all_pages/v2.0.0/x86.md +++ b/_all_pages/v2.0.0/x86.md @@ -72,8 +72,7 @@ void RunModel() { config.set_param_file(FLAGS_model_dir + "params"); config.set_valid_places({ - lite_api::Place{TARGET(kX86), PRECISION(kFloat)}, - lite_api::Place{TARGET(kHost), PRECISION(kFloat)} + lite_api::Place{TARGET(kX86), PRECISION(kFloat)} }); // 2. Create PaddlePredictor by CxxConfig -- GitLab