View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014178CMakeCMakepublic2013-05-30 10:512013-05-30 13:06
Reporternob 
Assigned ToAlex Neundorf 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionno change required 
PlatformLinuxOSOS Version
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014178: Eclipse CDT Generator uses fixed CPU Count for parallel build
DescriptionWhen using the Eclipse CDT4 (Unix Makefiles) Generator, CMake always generates a parallel build. While this is a generally a good idea, the number of CPUs may be to high on some projects/systems.

Here I have a Core i7 4-Core Laptop, where the ProcessorCount module reports 8 Processors. Using a parallel build with "make -j8", all compile jobs eat up all available RAM of the system, making it unusable.

It would be nice if the number parallel job count could be configurable and just falls back to the number ProcessorCount reproduces.
Steps To Reproduce- Use Eclipse CDT4 - Unix Makefiles Generator
- In Eclipse, look into Project/Properties/C/C++-Make Project/Make Builder --> Build command has a fixed "-j<num>" argument which seems not configureable.

On each reinvocation of cmake, the parallel job number is set back to its default.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033155)
Alex Neundorf (developer)
2013-05-30 13:06

CMake detects the number of CPUs, and uses that to initialize the CMAKE_ECLIPSE_MAKE_ARGUMENTS cache variable, in your case "-j8".

You can modify this variable as you want e.g. via cmake-gui. It will not change during following cmake runs.

If that doesn't work, please reopen this ticket.

 Issue History
Date Modified Username Field Change
2013-05-30 10:51 nob New Issue
2013-05-30 13:00 Alex Neundorf Assigned To => Alex Neundorf
2013-05-30 13:00 Alex Neundorf Status new => assigned
2013-05-30 13:06 Alex Neundorf Note Added: 0033155
2013-05-30 13:06 Alex Neundorf Status assigned => closed
2013-05-30 13:06 Alex Neundorf Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team