-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build llama runner fail due to pthread #3617
Comments
Yeah, I think it happens on PC. We added that as part of "Common Issues and Mitigations" section in https://github.com/pytorch/executorch/blob/main/examples/models/llama2/README.md#common-issues-and-mitigations |
Are there any further actionable things to do with this github issue? |
Thanks for your reply. I'll close this issue. |
@mergennachin I built llama runner on pc successfully, but when I build it for android, it again gives me another similar error:
I already add pthread to target link libraries in examples/models/llama2/CMakeLists.txt, and I don't know what to do now... |
I actually found a temporary solution, just remove "-lpthread" from cmake-out-android/examples/models/llama2/CMakeFiles/llama_main.dir/link.txt and the build succeeded. It seems that the project does not require -lpthread after all, not sure why it was added though. |
Hi @CHNtentes for this part, do you mean for Android or PC?
|
It is for Android. You can find it in filename. |
OK for android I didn't use -lpthread and it worked for me. Android has its own libc bionic so the behavior might be different. |
All resolved? |
Hi,
When I follow the insrtuction here to build llama runner on pc, it throws an error:
I ask ChatGPT and it tells me to add 'pthread' to target_link_libraries in examples/models/llama2/CMakeLists.txt, and it solves the issue effectively. I just wonder if this issue is only happening on my pc?
The text was updated successfully, but these errors were encountered: