Ninja build using too many cores

The way forward could be to:

You could then configure the top-level project using -DCMAKE_JOB_POOLS:STRING=compile=5;link=2.

This would mean that each instance of ninja would be limited to 5 compile jobs and 2 linker job.

Would that be helpful ? It may be worth exploring what would be sensible setup for Slicer.

2 Likes