-
Notifications
You must be signed in to change notification settings - Fork 724
Arm backend: Change run.sh to let cmake decide number of parallel jobs #5813
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
Arm backend: Change run.sh to let cmake decide number of parallel jobs #5813
Conversation
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
🔗 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 ( 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. |
|
@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 |
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.
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.
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.
My thinking also, lets see if its a problem
|
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@digantdesai merged this pull request in 3da2658. |
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.