Skip to content

Conversation

@zingo
Copy link
Collaborator

@zingo zingo commented Oct 2, 2024

Instead of specifying number of parallel jobs let cmake decide for it self. This make this script work better on macOS and might speed up builds as more parallel jobs are used.

Instead of specifying number of parallel jobs let cmake decide for it
self. This make this script work better on macOS and might speed up
builds as more parallel jobs are used.

Signed-off-by: Zingo Andersen <zingo.andersen@arm.com>
Change-Id: I33c501f6b441fd68aaef47d0169fb5eb0d254718
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 2, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit aa8428b with merge base 393553c (image):

BROKEN TRUNK - The following job 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.

@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 Oct 2, 2024
@zingo zingo added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Oct 2, 2024
@zingo
Copy link
Collaborator Author

zingo commented Oct 2, 2024

@pytorchbot label ciflow/trunk


n=$(nproc)
cmake --build cmake-out-aot-lib -j"$((n - 5))" -- quantized_ops_aot_lib
cmake --build cmake-out-aot-lib --parallel -- quantized_ops_aot_lib
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok for now, if i were to guess --parallel or -j might push oom? n - 5 may be too conservative. Let's see how this fare.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thinking also, lets see if its a problem

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@digantdesai merged this pull request in 3da2658.

@zingo zingo deleted the Arm-backend-Change-run.sh-to-let-cmake-decide-number-of-parallel-jobs branch October 3, 2024 06:29
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. Merged partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants