Skip to content

Get rid of fixed number cmake --build -j in sh and docs #10887

@kirklandsign

Description

@kirklandsign

📚 The doc issue

Right now we have a few places where the number of cmake --build -j is fixed.
https://github.com/search?q=repo%3Apytorch%2Fexecutorch+%22+-j%22&type=code

Ideally let's use
mac: $(sysctl -n hw.ncpu) - 1
linux: $(nproc) - 1

Update these docs and scripts.

Suggest a potential alternative/fix

No response

cc @larryliu0820 @jathu

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmodule: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions