Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Fix link error #28

Merged
merged 2 commits into from
Nov 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmark/tool/C/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 1 addition & 2 deletions benchmark/tool/C/inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In mobile inference library, the default value of use_gpu is false.
And some people have some doubts about the way this input parameter, so remove the argv in the demo.

std::cout << "paddle init error!" << std::endl;
}
}
Expand Down