diff --git a/_all_pages/develop/source_compile.md b/_all_pages/develop/source_compile.md index 224da75836f7bcade651761277ad203698b524b5..bacfe593d9977755b372d979c08f519c4f50a1b1 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 edcc479919220a45a38573f1c36a5ea6fa934116..1130d20d6a098170f4f66440cd8cbf5b74c00e88 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 806dd85b87ed1f180fc1030c5ebe2ad233c005ee..6732c6f0088385593a59e4a9259f9d8a0282a50a 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 edcc479919220a45a38573f1c36a5ea6fa934116..1130d20d6a098170f4f66440cd8cbf5b74c00e88 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