question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Defaults for parallel compile and link jobs

See original GitHub issue

With https://github.com/ClangBuiltLinux/tc-build/commit/f917c5c2adb5a7b2e18e592f6725399aed357952 you introduced custom options for parrallel compile and link jobs. I welcome this, thanks.

When I first had issues with compiling/linking a llvm-toolchain LLVM folks recommended to use safe settings: parallel compile jobs = 2 and … safe parallel link jobs = 1. Cannot say what the default is for linking in tc-build or LLVM upstream, but I see parallel compile jobs are set to 4 (maximum of available CPUs?) in tc-build for my Intel SandyBridge notebook. What are the default settings?

Please note @nickdesaulniers tip in the below link.

[1] https://github.com/ClangBuiltLinux/llvm-dev-conf-2020/issues/3#issuecomment-704398983

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nathanchancecommented, Jan 24, 2021

Building on a phone versus building on a laptop or server are two completely different use cases. The script aims to be as quick as possible which means building with as many compile and link jobs as ninja feels is reasonable by default. The -D option is there if it needs to be lowered but I disagree with setting any value to those options by default, especially given that LLVM doesn’t.

0reactions
dilekscommented, Feb 2, 2021

Thanks.

I dropped my compile and link jobs options. Will only add link jobs = 1. For the rest I trust NinJA. Ja means German Yes.

Nathan Chancellor notifications@github.com schrieb am Di., 2. Feb. 2021, 08:26:

Yes, custom values are passed to all cmake invocations.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ClangBuiltLinux/tc-build/issues/137#issuecomment-771428236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFQTSFXZWWEMR7RGXO4AXTS46SK5ANCNFSM4WP7EU7Q .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling server jobs and parallel jobs - IBM
The compilation of parallel jobs is by default optimized such that transformer stages only get recompiled if they have changed since the last...
Read more >
Parallel make: set -j8 as the default option - Stack Overflow
Your question is not about threads, but processes (jobs) executed by make. The simple, way to set this, when make is used from...
Read more >
Parallel (GNU make)
The default number of job slots is one, which means serial execution (one thing at a time). Handling recursive make invocations raises issues...
Read more >
The basics of CI: How to run jobs sequentially, in parallel, or ...
Jobs can run sequentially, in parallel, or out of order using DAG. You can pass files between jobs and store them in build...
Read more >
Configure and pay for parallel jobs - Azure DevOps
In Azure Pipelines, you can run parallel jobs on Microsoft-hosted infrastructure ... We provide a free tier of service by default in every ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found