-
Notifications
You must be signed in to change notification settings - Fork 738
[Executorch][llama] Split main in lib + binary #15919
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: gh/kimishpatel/215/base
Are you sure you want to change the base?
Conversation
Main reason to do so is to allow internal benchmarking binary to link against main_lib Differential Revision: [D87547090](https://our.internmc.facebook.com/intern/diff/D87547090/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15919
Note: Links to docs will display an error until the docs builds have been completed. ❗ 2 Active SEVsThere are 2 currently active SEVs. If your PR is affected, please view them below: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Main reason to do so is to allow internal benchmarking binary to link against main_lib Differential Revision: [D87547090](https://our.internmc.facebook.com/intern/diff/D87547090/) ghstack-source-id: 324690959 Pull Request resolved: #15919
This PR needs a
|
examples/models/llama/targets.bzl
Outdated
| runtime.cxx_binary( | ||
| name = "main" + aten_suffix, | ||
| runtime.cxx_library( | ||
| name = "main" + aten_suffix + "_lib", |
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.
nit: "main_lib" + aten_suffix
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
examples/models/llama/targets.bzl
Outdated
| name = "main" + aten_suffix, | ||
| srcs = [], | ||
| deps = [ | ||
| ":main" + aten_suffix + "_lib", |
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.
same here, ":main_lib" + aten_suffix,
Main reason to do so is to allow internal benchmarking binary to link against main_lib Differential Revision: [D87547090](https://our.internmc.facebook.com/intern/diff/D87547090/) [ghstack-poisoned]
Pull Request resolved: #15919 Main reason to do so is to allow internal benchmarking binary to link against main_lib Differential Revision: [D87547090](https://our.internmc.facebook.com/intern/diff/D87547090/) ghstack-source-id: 325659293
Stack from ghstack (oldest at bottom):
Main reason to do so is to allow internal benchmarking binary to link against main_lib
Differential Revision: D87547090