User forums > Using Code::Blocks

Cannot increase the number of parallel build processes beyond 16

<< < (2/3) > >>

Miguel Gimenez:
Revision 10822:

https://sourceforge.net/p/codeblocks/code/10822/

EDIT: if you select 0 then std::max(1, wxThread::GetCPUCount()) is used.

alexchen:
Currently I can set up to 16 parallel builds on a VM with 12 CPU.  If I set to 0 according the link mentioned, wouldn't it mean that I can have only 12 parallel builds? That is even worse.

oBFusCATed:
But why do you need it more than 12 in the first place? What do you think it will happen if you set it to 32 or 64 or some other high number? (I know the limitation is not really good idea)

alexchen:
I do not need to bump it up that much really.  I just want to know whether it is a hard limit regardless how powerful your machine is or some other issues.  When I do a big project build wit Code::Blocks command line tool in a batch build, it can sometime take several hours to finish.

oBFusCATed:
Actually the limit has been removed in r10822.
Are you sure you have a clean install of 20.03?
On my machine I can set it to 32 no problem.

Most of the time this limit is not what is limiting scalability/parallelism in cb projects/workspaces.
The main problem is that targets/projects cannot be run in parallel.
So if you have many small targets they are run in serial almost mode with very little use of CPU resources.

Currently the only solution is to switch to cmake+ninja or something similar.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version