-
Notifications
You must be signed in to change notification settings - Fork 618
Remove EXECUTORCH_BUILD_LLAMA_JNI cmake flag #12382
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12382
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 4 Unrelated FailuresAs of commit c3651af with merge base abd6eff ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
c44e550
to
0ad4a35
Compare
3312749
to
7be82a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Thanks for spotting and cleaning this up.
33f8276
to
ebcf4b7
Compare
I think this is a good change. cc @kirklandsign |
f65eb3d
to
338bc53
Compare
338bc53
to
c3651af
Compare
Summary
I think
EXECUTORCH_BUILD_LLAMA_JNI
is redundant. If we are building for Android (assumed true underextension/android
) and withEXECUTORCH_BUILD_EXTENSION_LLM
, then it implies we want the JNI bindings!There is a C++ def
EXECUTORCH_BUILD_LLAMA_JNI
that does some registration:executorch/extension/android/jni/jni_layer.cpp
Lines 488 to 493 in 31ba959
However, we turn them on for both BUCK:
executorch/extension/android/jni/BUCK
Lines 72 to 82 in 31ba959
And cmake:
executorch/extension/android/CMakeLists.txt
Lines 148 to 151 in b5f950b
Test plan
CI
cc @larryliu0820 @mergennachin @cccclai @helunwencser @jackzhxng