POV-Ray : Newsgroups : povray.unix : OMG, super fast compiling : Re: OMG, super fast compiling Server Time
28 Apr 2024 16:22:19 EDT (-0400)
  Re: OMG, super fast compiling  
From: waggy
Date: 16 Aug 2012 12:25:00
Message: <web.502d1e0b950df5ba9726a3c10@news.povray.org>
"jhu" wrote:
> make -j x
>
> where "x" is the number of total threads the processor supports. Am I the only
> who didn't know about this???

No, and thank you for posting it.  I'll include a note about this in the
package-specifc instructions I post from time to time.

I don't even recall seeing this when looking at a few compile-from-source Linux
distributions a few months ago...  Ah, here it is.

Note
For many modern systems with multiple processors (or cores) the compilation time
for a package can be reduced by performing a "parallel make" by either setting
an environment variable or telling the make program how many processors are
available. For instance, a Core2Duo can support two simultaneous processes with:

export MAKEFLAGS='-j 2'
or just building with:

make -j2
When multiple processors are used in this way, the SBU units in the book will
vary even more than they normally would. Analyzing the output of the build
process will also be more difficult because the lines of different processes
will be interleaved. If you run into a problem with a build step, revert back to
a single processor build to properly analyze the error messages.

From:
http://www.linuxfromscratch.org/lfs/view/stable/chapter04/aboutsbus.html


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.