Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-08

Parallel compilation 'make all -j 5' option

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Does 2.7.1 not use parallel compilation any more? I just compiled 2.7.1 and only noticed that one of my CPU cores got high usage at a time. Some months back I could see all four cores work hard at a certain point in FPC's compilation (I think when compiling the packages units).

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Does 2.7.1 not use parallel compilation any more? I just compiled 2.7.1 and only noticed that one of my CPU cores got high usage at a time. Some months back I could see all four cores work hard at a certain point in FPC's compilation (I think when compiling the packages units).

You now also have to add FPMAKEOPT="-T 5". The reason is that the packages are now compiled by fpmake, and GNU make unfortunately has no way to query the value of the -j parameter inside a makefile so it cannot be automatically passed on to fpmake.

Jonas

Reply by email

Graeme Geldenhuys
to Sven Barth

Hi,

Sven Barth wrote
Just for your information: you were told this already five months ago and you also confirmed that you changed your buildscripts. ;P

<Blush> I guess I modified only one script and not all. Since then I have also had 3 development computers and source code moved around a lot from Linux (64-bit)->Windows (32-bit)->Linux(64-bit), so I guess I must have lots those changes somewhere along the lines. I can confirm that this time ALL my build scripts have been updated. :)

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Mark Morgan Lloyd
to Jonas Maebe: You now also have to add FPMAKEOPT="-T 5". The reason is that the packages are now…
Jonas Maebe wrote 9 lines
On 15 Aug 2012, at 18:11, Graeme Geldenhuys wrote: > Does 2.7.1 not use parallel compilation any more? I just compiled > 2.7.1 and only noticed that one of my CPU cores got high usage at a > time. Some months back I could see all four cores work hard at a > certain point in FPC's compilation (I think when compiling the > packages units). You now also have to add FPMAKEOPT="-T 5". The reason is that the packages are now compiled by fpmake, and GNU make unfortunately has no way to query the value of the -j parameter inside a makefile so it cannot be automatically passed on to fpmake.

Although on unix (Linux, Solaris) it's not too difficult to extract the top-level make command line from ps output; I've not checked but this is presumably also in the /proc tree.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email