Skip to content

Conversation

@mergennachin
Copy link
Contributor

@mergennachin mergennachin commented Dec 12, 2024

Summary

Currently, during compilation via cmake, we can't do it in offline environments (e.g., doing development in airplane) for instance.

There are two things we can do:

  1. Currently, we are downloading buck2 from the internet. This is fine, but we're downloading every time we rm -rf cmake-out file. Let's just download once and save inside executorch/buck2-bin/ folder directly instead of executorch/cmake-out/buck2-bin/. That way, you will most likely have the necessary buck2 binary downloaded/cached and rarely deleted. There's little reason to delete this directory.

  2. FXDiv is getting downloaded if it is not defined. https://github.com/google/XNNPACK/blob/effe4ca0631f3fb0dac9551dab6f1d8a2eaabba2/CMakeLists.txt#L355. However, this is an oversight, since we actually have it already (https://github.com/pytorch/executorch/blob/main/.gitmodules#L19), just haven't set the environment variable appropriately.

Test plan

  • Do installation once with internet once.
  • Turn on airplane mode
  • ./install_requirements.sh --clean
  • Do compilation again (mkdir cmake-out && cd cmake-out && cmake ..)

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 12, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 653ccc8 with merge base e1d1a96 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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 Dec 12, 2024
@mergennachin mergennachin added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label Dec 12, 2024
@mergennachin
Copy link
Contributor Author

mergennachin commented Dec 12, 2024

Corresponding GH issue: #7306

@mergennachin mergennachin merged commit 037a0d3 into main Dec 13, 2024
104 of 106 checks passed
@mergennachin mergennachin deleted the my-fork3 branch December 13, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants