Building on multiple coresPosted: 2014-03-16
Sometimes, I want to build a package as fast as possible. I have done this, when I had to make a new SlackBuild for something large and I just want to see if all requirements are met. The UniPro Ugene SlackBuild comes to mind. In this case I modified the
make line within the SlackBuild like this:
My build machine has a quad core CPU and this would utilise all cores for the compilation. This, combined with the compiling in RAM approach will speed up the whole process dramatically.
However, the building of some programs would fail if you use multiple cores, and SBo makes sure that only a single core is used. So, I avoid doing this. Recently there was a discussion concerning this at LQ.
I still haven’t tried setting this globally…