Replace fixed number cmake --build -j in sh and docs #10887
Summary
Replaces fixed number of cmake --build -j entries with:
mac: -j$(($(sysctl -n hw.ncpu) - 1)) linux: -j$(($(nproc) - 1))
Changes
Implemented changes to the best of my ability to .sh, .md, and .yml, could you kindly review if any changes were unnecessary or not relevant? I am a CS student learning how to work with FLOSS communities so I am happy to make any adjustments if needed, thank you.
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11351
- :page_facing_up: Preview Python docs built from this PR
Note: Links to docs will display an error until the docs builds have been completed.
:x: 29 New Failures, 45 Cancelled Jobs
As of commit a5b15d3770614ff7b4adad3129791616e88a387d with merge base b5a6362eb2f1ba3368e6f804f146ded8747df992 ():
NEW FAILURES - The following jobs have failed:
- Build macOS Wheels / pytorch/executorch / build-wheel-py3_10-cpu (gh)
Process completed with exit code 1. - Build macOS Wheels / pytorch/executorch / upload / upload-wheel-py3_10-cpu (gh)
Unable to download artifact(s): Artifact not found for name: pytorch_executorch__3.10_cpu_ - pull / unittest / macos / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - pull / unittest-editable / macos / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-coreml-delegate / macos-job (gh)
RuntimeError: Command bash /Users/runner/work/_temp/exec_script failed with exit code 1 - trunk / test-custom-ops-macos (cmake) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-huggingface-transformers (allenai/OLMo-1B-hf) / linux-job (gh)
RuntimeError: Command docker exec -t 382a9bb10bac1b527325614294c56a8e3357d157a97c64cbf7d4cb4eb3991ca6 /exec failed with exit code 1 - trunk / test-huggingface-transformers (google/gemma-3-1b-it) / linux-job (gh)
RuntimeError: Command docker exec -t 5e037cb840a73102be3479cbb9df23b9dfd755fc022d118cdabaf6254a232e82 /exec failed with exit code 1 - trunk / test-huggingface-transformers (HuggingFaceTB/SmolLM2-135M) / linux-job (gh)
RuntimeError: Command docker exec -t 56287d5ab46587210a1b2592630ecca65301ba2e20531338d006d0973308a1d6 /exec failed with exit code 1 - trunk / test-huggingface-transformers (meta-llama/Llama-3.2-1B) / linux-job (gh)
RuntimeError: Command docker exec -t e3f3b57d0e124dc87dc12a3c444cf0f0816c29ca890645b87eea09bbc48762e6 /exec failed with exit code 1 - trunk / test-huggingface-transformers (Qwen/Qwen3-0.6B) / linux-job (gh)
RuntimeError: Command docker exec -t 9dabb2bed85f7777798a2f2aa98f005345f7e9aa3f4b398525cd853bb5f781e0 /exec failed with exit code 1 - trunk / test-llama-runner-mac (fp32, coreml) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-llama-runner-mac (fp32, mps) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-llama-runner-mac (fp32, xnnpack+custom+quantize_kv) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-llama-torchao-lowbit / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (efficient_sam, portable) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (emformer_join, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (ic4, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (llama, portable) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (llama2, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (llama3_2_vision_encoder, portable) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (mobilebert, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (mv3, portable) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (mv3, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (resnet50, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (vit, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-models-macos (w2l, xnnpack-quantization-delegation) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / test-selective-build-macos (cmake) / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1 - trunk / unittest-release / macos / macos-job (gh)
RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1
CANCELLED JOBS - The following jobs were cancelled. Please retry:
- Build documentation / build (buck2) / Build doc (gh)
- Build Presets / linux (linux, linux.2xlarge, executorch-ubuntu-22.04-clang12) / build (gh)
- Build Presets / linux (llm, linux.2xlarge, executorch-ubuntu-22.04-clang12) / build (gh)
- Lint / android-java-format / linux-job (gh)
##[error]The operation was canceled. - Lint / link-check / lint-xrefs / linux-job (gh)
##[error]The operation was canceled. - Lint / lintrunner / linux-job (gh)
##[error]The operation was canceled. - pull / android / build-llm-demo / linux-job (gh)
- pull / test-binary-size-linux-gcc / linux-job (gh)
- pull / test-llama-runner-linux-android / linux-job (gh)
##[error]The operation was canceled. - pull / test-llava-runner-linux / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (add_mul, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (add, portable, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (emformer_join, portable, linux.4xlarge.memory) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (emformer_transcribe, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
- pull / test-models-linux (ic3, portable, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (ic4, portable, linux.4xlarge.memory) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (linear, portable, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (linear, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (llama3_2_vision_encoder, portable, linux.4xlarge.memory) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (mobilebert, portable, linux.2xlarge) / linux-job (gh)
- pull / test-models-linux (mobilebert, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (mv2, portable, linux.2xlarge) / linux-job (gh)
- pull / test-models-linux (phi_4_mini, portable, linux.4xlarge.memory) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (resnet18, portable, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (resnet18, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux (resnet50, portable, linux.2xlarge) / linux-job (gh)
- pull / test-models-linux (resnet50, xnnpack-quantization-delegation, linux.2xlarge) / linux-job (gh)
- pull / test-models-linux (w2l, portable, linux.4xlarge.memory) / linux-job (gh)
- pull / test-models-linux-basic (mv3, portable, buck2, linux.2xlarge, executorch-ubuntu-22.04-clang12) / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux-basic (mv3, xnnpack-quantization-delegation, buck2, linux.2xlarge, executorch-u... / linux-job (gh)
- pull / test-models-linux-basic (mv3, xnnpack-quantization-delegation, cmake, linux.2xlarge, executorch-u... / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux-basic (vit, portable, buck2, linux.2xlarge, executorch-ubuntu-22.04-clang12) / linux-job (gh)
- pull / test-models-linux-basic (vit, portable, cmake, linux.2xlarge, executorch-ubuntu-22.04-clang12) / linux-job (gh)
- pull / test-models-linux-basic (vit, portable, cmake, linux.arm64.2xlarge, executorch-ubuntu-22.04-gcc11... / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux-basic (vit, xnnpack-quantization-delegation, buck2, linux.2xlarge, executorch-u... / linux-job (gh)
##[error]The operation was canceled. - pull / test-models-linux-basic (vit, xnnpack-quantization-delegation, cmake, linux.2xlarge, executorch-u... / linux-job (gh)
- pull / test-moshi-linux / linux-job (gh)
##[error]The operation was canceled. - pull / test-openvino-linux / linux-job (gh)
##[error]The operation was canceled. - pull / test-phi-3-mini-runner-linux / linux-job (gh)
##[error]The operation was canceled. - pull / test-setup-linux-gcc / linux-job (gh)
- pull / unittest / linux / linux-job (gh)
- pull / unittest-arm-backend-with-no-fvp (test_pytest_models) / linux-job (gh)
- pull / unittest-arm-backend-with-no-fvp (test_pytest_ops) / linux-job (gh)
##[error]The operation was canceled. - pull / unittest-buck / linux / linux-job (gh)
##[error]The operation was canceled. - pull / unittest-editable / linux / linux-job (gh)
##[error]The operation was canceled.
This comment was automatically generated by Dr. CI and updates every 15 minutes.
Hi @MichaelIspas!
Thank you for your pull request and welcome to our community.
Action Required
In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.
Process
In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.
If you have received this in error or have any questions, please contact us at [email protected]. Thanks!
This PR needs a release notes: label
If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.
To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"
For more information, see https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.
Thanks for the contribution @MichaelIspas! I have some feedback, mainly that most of these scripts are used on macOS and Linux (and also Windows in bash), so we need to support both systems
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.Stale pull requests will automatically be closed after 30 days of inactivity.
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.Stale pull requests will automatically be closed after 30 days of inactivity.