Skip to content

Add ExecuTorchRuntime.java skeleton #11058

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

Merged
merged 3 commits into from
May 22, 2025
Merged

Conversation

kirklandsign
Copy link
Contributor

Summary: No API yet. Just factor out NativeLoader.loadLibrary from Module.java and LlmModule.java, to allow mock.

Differential Revision: D75180081

Summary: No API yet. Just factor out NativeLoader.loadLibrary from Module.java and LlmModule.java, to allow mock.

Differential Revision: D75180081
Copy link

pytorch-bot bot commented May 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11058

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 1220fcb with merge base 5268b24 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 21, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75180081

@facebook-github-bot
Copy link
Contributor

@kirklandsign has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kirklandsign kirklandsign added the release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) label May 21, 2025
@facebook-github-bot
Copy link
Contributor

@kirklandsign has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kirklandsign kirklandsign changed the title Add Runtime.java skeleton Add ExecuTorchRuntime.java skeleton May 21, 2025
@facebook-github-bot facebook-github-bot merged commit 3083980 into main May 22, 2025
88 of 90 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D75180081 branch May 22, 2025 01:00
GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Jun 4, 2025
Summary:
This is a partial revert of pytorch#11058. We are seeing issues with JNI loading on Meta apps. My best guess is that the call to ExecuTorchRuntime is getting optimized out in Module.java, since the result is not used. I'm re-adding the explicit load back until we get that figured out.


Reviewed By: bugraoral, larryliu0820

Differential Revision: D75994546
@GregoryComer
Copy link
Member

@kirklandsign Some Meta apps started seeing a high load failure rate. My hypothesis is that the load might actually be getting skipped since the ExecuTorchRuntime instance may be getting optimized out of the Module call, since it's not actually used. I'm re-adding the so load in Module.java in #11385 to try to resolve this for now, but I could use your help to find the long term solution once you're back. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants