Mailinglist Archive: opensuse-packaging (104 mails)

< Previous Next >
Re: [opensuse-packaging] osc build not using all cores
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Fri, 3 Aug 2018 15:46:17 +0200
  • Message-id: <20180803134617.buxqyb7umiifribx@linux>
On 2018-08-03 09:26:31 -0400, Neal Gompa wrote:
On Fri, Aug 3, 2018 at 9:25 AM Marcus Hüwe <suse-tux@xxxxxx> wrote:

On 2018-08-03 14:57:02 +0200, John Paul Adrian Glaubitz wrote:

I am currently test-building my new package aws-sdk-cpp [1] on a fast
dual-CPU AMD EPYC machines with a total of 32 cores.

Looking at htop shows that the build is not using all cores. Building
without osc, i.e. just using the upstream source in the normal system
environment works in parallel.

I have already passed -j 32 to osc but that doesn't help.

Hmm probably an appropriate "make" call is missing in your %build
section. Adding something like


after your %cmake call should fix it.

Please use either "make %{?_smp_mflags}" or "%make_build", as both are
standard means that are supported within RPM itself.

This won't work if the %cmake call generates a build.jinja instead
of a Makefile. If the cmake macros are used, the spec file maintainer
does not have to care about the underlying build system.

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >