Setting thread count is ignored

TwineCompile - Cut C++Builder compile times by up to 50x!
Post Reply
gbrandt
Posts: 9
Joined: Thu Oct 07, 2010 4:55 pm

Setting thread count is ignored

Post by gbrandt »

TwineCompile 3.2.0.213

When setting the thread count manually, it is ignored. The thread count is always equal to the processor count.

Gregor
jomitech
Site Admin
Posts: 2157
Joined: Wed Oct 08, 2008 12:23 am

Re: Setting thread count is ignored

Post by jomitech »

Is the right thread count passed to mtbcc32? It should appear on the command line as -threadsX where X is the number of threads.
Jon
gbrandt
Posts: 9
Joined: Thu Oct 07, 2010 4:55 pm

Re: Setting thread count is ignored

Post by gbrandt »

Yes the command line has -threads4, but the compile listbox shows only two items compiling at one time. If I switch my Virtual Machine to use 4 CPU's, I get four items compiling at one time.

C++ Builder XE, Window 7 32 bit , VMware Fusion

Gregor
jomitech
Site Admin
Posts: 2157
Joined: Wed Oct 08, 2008 12:23 am

Re: Setting thread count is ignored

Post by jomitech »

How many mtbcc32CompileExecutor processes are running in the background when you have 4 threads with only 2 CPUs?
Jon
gbrandt
Posts: 9
Joined: Thu Oct 07, 2010 4:55 pm

Re: Setting thread count is ignored

Post by gbrandt »

There are only two running

Gregor
jomitech
Site Admin
Posts: 2157
Joined: Wed Oct 08, 2008 12:23 am

Re: Setting thread count is ignored

Post by jomitech »

Try closing them (TwineCompile -> Close Executors) and see how many you get on the next compile.
Jon
gbrandt
Posts: 9
Joined: Thu Oct 07, 2010 4:55 pm

Re: Setting thread count is ignored

Post by gbrandt »

I get two back.
jomitech
Site Admin
Posts: 2157
Joined: Wed Oct 08, 2008 12:23 am

Re: Setting thread count is ignored

Post by jomitech »

Can you copy and paste the command-line from the console window into here?
Jon
Post Reply