diff --git a/benchmark/tool/C/README.md b/benchmark/tool/C/README.md index 753f0c5..90fa54b 100644 --- a/benchmark/tool/C/README.md +++ b/benchmark/tool/C/README.md @@ -7,7 +7,7 @@ The demo can be run from the command line and can be used to test the inference ## Android To compile and run this demo in an Android environment, please follow the following steps: -1. Refer to [this document](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/howto/cross_compiling/cross_compiling_for_android_cn.md) to compile the Android version of PaddlePaddle. After following the mentioned steps, make install will generate an output directory containing three subdirectories: include, lib, and third_party. +1. Refer to [this document](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/mobile/cross_compiling_for_android_en.md) to compile the Android version of PaddlePaddle. After following the mentioned steps, make install will generate an output directory containing three subdirectories: include, lib, and third_party. 2. Compile `inference.cc` to an executable program for the Android environment as follows: - For armeabi-v7a ``` diff --git a/benchmark/tool/C/inference.cc b/benchmark/tool/C/inference.cc index 515ee1f..23e8f89 100644 --- a/benchmark/tool/C/inference.cc +++ b/benchmark/tool/C/inference.cc @@ -76,8 +76,7 @@ int main(int argc, char* argv[]) { { Timer time("init paddle"); - char* argv[] = {(char*)"--use_gpu=False"}; - if (paddle_init(1, (char**)argv) != kPD_NO_ERROR) { + if (paddle_init(0, NULL) != kPD_NO_ERROR) { std::cout << "paddle init error!" << std::endl; } }