Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] make -j8 doesnt work with cmake...

I think the way the CDT generator works is to create the CDT projects that point to some makefiles. You should be able to use the CDT 4 generator to generate your projects, but then use a terminal to "make - j8" in the build directory to build your project. If that successfully saturates your processors then try the same thing inside of Eclipse. If using Eclipse does not fully saturate at least 2 of the processors then something is definitely wrong. You will also want to "make clean" between tests.

I use Eclipse all the time with CMake and compile on multiple cores with no problems under OS X 10.5.8 and Linux.

_________________________________________________________
Mike Jackson                  mike.jackson@xxxxxxxxxxxxxx


On Nov 24, 2009, at 9:42 AM, Olexiy Buyanskyy wrote:

I am not really good expert in cmake, but in gmake -j option does not tell how many processors to use. This option used to allow to run several threads during build if this is possible. If gmake does not see anything to run in several threads if will run it in single thread only. You should not expect usage of 8 cores just because you specified -j8

--
Olexiy

On Tue, Nov 24, 2009 at 9:26 AM, Nicolas Rannou <Nicolas_Rannou@xxxxxxxxxxxxxxx > wrote: When I check the number of cores running during the build (make -j8) (with command "top" for example), only one is working whereas if I build out of eclipse (make -j8) 8 cores are working...

Maybe is that the problem is that I use CDT4 generator and that I have CDT 6.0 on eclipse....

Nicolas


Alena Laskavaia wrote:
If it is does not work with -j8 for make - it is your makefiles
problems (or make) not cdt. Why do you think it is not working?

On Mon, Nov 23, 2009 at 1:39 PM, Nicolas Rannou
<Nicolas_Rannou@xxxxxxxxxxxxxxx> wrote:

Hello,

I'm new in eclipse and I encounter some difficulties.

I tried to import my c++ project into Eclipse and to perform a parallel
build using 8 cores but it doesn't work.

I tried the 3 methods proposed in the tutorials
(http://www.cmake.org/Wiki/CMake:Eclipse) but no one gives the expected
result. It always builds my project in 1 core, even if use parallel
build/jobs is checked or if I had -j8 manually to the make command...

Maybe should I download new components in eclipse or configure something in
the cmakelists files...?

I use cmake 2.6 and 2.8...

Thanks

Nicolasq



Back to the top