Below I forward a post from the CMake list which reviews the various
ways you can obtain parallel builds with any CMake-based build system
(such as that for PLplot) on Linux, Mac OS X, and Windows.

Parallel builds are important since they fully utilize all cpu's on your
system to give you a much faster build.  I have been using parallel builds
(with the GNU make version [designated gmake in the message below, but the
name of the actual command is "make"]) for some time now on Linux with no
issues.  In my case it makes the builds twice as fast because I have an
Intel Core 2 duo with just two processors, but that is a low-end system so
others with more than two processors should achieve even quicker builds than
I do.

For a long time now, parallel builds have been limited (by the underlying
OS) to just gmake on Linux and Mac OS X, but I am pleased to see in Bill's
message below there is a way with jom to do parallel builds on Windows as
well.  As far as I am aware none of our Windows developers or users have
used jom yet, but it appears from the message below that it will work so I
suggest you give it a try the next time you build PLplot on Windows.  Of
course, if you haven't been using "make -j N" (where N is typically 4 for a
two-cpu machine) on Linux and Mac OS X, now would be a good time to try that
as well to build PLplot.  I think you will be amazed at the decrease in
build time that you obtain.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

---------- Forwarded message ----------
Date: Mon, 25 Jan 2010 09:55:22 -0500
From: Bill Hoffman <[email protected]>
To: John Drescher <[email protected]>
Cc: [email protected]
Subject: Re: [CMake] Specifying multiple build threads on windows

John Drescher wrote:
>> Can you please help as how I could specify the number of threads to be used
>> in the command line builds i.e. something like
>> 
>> (For nmake)
>> 
>> Cmd > nmake –j5
>> 
>> (For Visual Studio 2008)
>> 
>> cmd> cmake –-build . –j5
>> 
> 
> Use vcbuild or msbuild
>

You can use jom, or gmake.

Jom is an nmake replacement that can do parallel builds done by the Qt folks, 
the download can be found here:
ftp://ftp.qt.nokia.com/jom/jom.zip

For gmake, you need cygwin installed, but you need to use the gmake from here:

Older cygwin:
http://www.cmake.org/files/cygwin/make.exe
Cygwin 1.7:
http://www.cmake.org/files/cygwin/make.exe-cygwin1.7

For gmake use the Unix Makefiles generator, and make sure make is in your PATH. 
For jom use the NMake Makefiles generator, and then run jom.  CMake CVS has a 
jom generator, but the NMake Makefiles one should work fine.

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
[email protected]
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to