Skip to content
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

fix(build): limit default parallelism to 8 cores #932

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

ksqsf
Copy link
Member

@ksqsf ksqsf commented Sep 1, 2024

On systems where nproc is not available, it will leave only -j which causes unlimited parallelism.

Note: macos CI build already uses ninja which properly handles parallelism.

Pull request

Issue tracker

Fixes will automatically close the related issue

Fixes #856

Feature

Describe feature of pull request

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

@ksqsf ksqsf changed the title fix(build): limit default parallelism to 8 jobs fix(build): limit default parallelism to 8 cores Sep 1, 2024
@ksqsf ksqsf requested a review from a team September 1, 2024 15:11
@ksqsf ksqsf force-pushed the makeflags branch 2 times, most recently from 210ca39 to 71794fe Compare September 1, 2024 15:28
On systems where nproc is not available, it will leave only -j which
causes unlimited parallelism.
Copy link

Choose a reason for hiding this comment

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

Need + 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. The job count is usually nproc+1 or +2 to make full use of the CPU power.

@ksqsf ksqsf merged commit aea8154 into rime:master Sep 2, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linux arm64无法构建
3 participants