Skip to content

Conversation

jathu
Copy link
Contributor

@jathu jathu commented Sep 8, 2025

Summary:
Given stack_util.h is exported and it includes kernel_includes.h, we need kernel_includes in the build dependency.

One solution is to expect the clients who use slice_util to also add kernel_includes. However, "doing it for them" via exported_deps seems like a nicer solution.

Reviewed By: silverguo

Differential Revision: D81930473

Copy link

pytorch-bot bot commented Sep 8, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6866011 with merge base 0eb4361 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla 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 Sep 8, 2025
@facebook-github-bot
Copy link
Contributor

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

@jathu jathu added the release notes: none Do not include this in the release notes label Sep 8, 2025
jathu pushed a commit that referenced this pull request Sep 8, 2025
Summary:

Given `stack_util.h` is exported and it includes `kernel_includes.h`, we need `kernel_includes` in the build dependency.

One solution is to expect the clients who use `slice_util` to also add `kernel_includes`. However, "doing it for them" via exported_deps seems like a nicer solution.

Reviewed By: silverguo

Differential Revision: D81930473
Summary:
Pull Request resolved: #14069

Given `stack_util.h` is exported and it includes `kernel_includes.h`, we need `kernel_includes` in the build dependency.

One solution is to expect the clients who use `slice_util` to also add `kernel_includes`. However, "doing it for them" via exported_deps seems like a nicer solution.

Reviewed By: silverguo

Differential Revision: D81930473
@facebook-github-bot
Copy link
Contributor

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

deps = [
"//executorch/kernels/portable/cpu/util:copy_ops_util",
],
exported_deps = [
Copy link
Contributor

Choose a reason for hiding this comment

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

why exported_deps rather than adding it to the list of deps?

Copy link
Contributor Author

@jathu jathu Sep 8, 2025

Choose a reason for hiding this comment

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

I think this is due to GitHub's poor diff UI, but it currently exists in deps. I am moving it to external_deps

runtime.cxx_library(
name = "stack_util",
srcs = ["stack_util.cpp"],
exported_headers = ["stack_util.h"],
deps = [
"//executorch/kernels/portable/cpu/util:copy_ops_util",
"//executorch/runtime/kernel:kernel_includes",
],
visibility = ["//executorch/kernels/portable/cpu/...", "@EXECUTORCH_CLIENTS"],
)

@jathu jathu merged commit 397b8df into main Sep 9, 2025
117 of 118 checks passed
@jathu jathu deleted the export-D81930473 branch September 9, 2025 15:15
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: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants