public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* limit PARALLEL_MAKE
@ 2024-02-28 12:52 Schultschik, Sven
  2024-02-28 12:57 ` Uladzimir Bely
  0 siblings, 1 reply; 4+ messages in thread
From: Schultschik, Sven @ 2024-02-28 12:52 UTC (permalink / raw)
  To: isar-users

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

Hi,

I found a bug in the fTPM build that it has a bug if more than 16 cores
are available. On a machine with 20 cors the my build faild constantly.
Limit hardcoded the ftpm build to -j 16 fixed the issue.

Is there a correct ISAR way to limit $(PARALLEL_MAKE) to max 16?

Or do I have to write me an own if (nproc > 16) -j 16 variable?

Thanks

Sven

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 10057 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: limit PARALLEL_MAKE
  2024-02-28 12:52 limit PARALLEL_MAKE Schultschik, Sven
@ 2024-02-28 12:57 ` Uladzimir Bely
  2024-02-28 18:05   ` Schultschik, Sven
  0 siblings, 1 reply; 4+ messages in thread
From: Uladzimir Bely @ 2024-02-28 12:57 UTC (permalink / raw)
  To: Schultschik, Sven, isar-users

On Wed, 2024-02-28 at 12:52 +0000, 'Schultschik, Sven' via isar-users
wrote:
> Hi,
> 
> I found a bug in the fTPM build that it has a bug if more than 16
> cores
> are available. On a machine with 20 cors the my build faild
> constantly.
> Limit hardcoded the ftpm build to -j 16 fixed the issue.
> 
> Is there a correct ISAR way to limit $(PARALLEL_MAKE) to max 16?
> 
> Or do I have to write me an own if (nproc > 16) -j 16 variable?
> 
> Thanks
> 
> Sven
> 

Hello.

Just export it before the build:
```
export PARALLEL_MAKE="-j 10"
```

It should work both with build using kas-container and ordinary build.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: limit PARALLEL_MAKE
  2024-02-28 12:57 ` Uladzimir Bely
@ 2024-02-28 18:05   ` Schultschik, Sven
  2024-02-29  8:14     ` Uladzimir Bely
  0 siblings, 1 reply; 4+ messages in thread
From: Schultschik, Sven @ 2024-02-28 18:05 UTC (permalink / raw)
  To: ubely, isar-users

On Wed, 2024-02-28 at 15:57 +0300, Uladzimir Bely wrote:
> On Wed, 2024-02-28 at 12:52 +0000, 'Schultschik, Sven' via isar-users
> wrote:
> > Hi,
> > 
> > I found a bug in the fTPM build that it has a bug if more than 16
> > cores
> > are available. On a machine with 20 cors the my build faild
> > constantly.
> > Limit hardcoded the ftpm build to -j 16 fixed the issue.
> > 
> > Is there a correct ISAR way to limit $(PARALLEL_MAKE) to max 16?
> > 
> > Or do I have to write me an own if (nproc > 16) -j 16 variable?
> > 
> > Thanks
> > 
> > Sven
> > 
> 
> Hello.
> 
> Just export it before the build:
> ```
> export PARALLEL_MAKE="-j 10"
> ```
> 
> It should work both with build using kas-container and ordinary
> build.

Hi

sure that would work, but I wanted to just limit for that one recipe
and not for the complete build.

So it can be included directly into the recipe and be used by others.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: limit PARALLEL_MAKE
  2024-02-28 18:05   ` Schultschik, Sven
@ 2024-02-29  8:14     ` Uladzimir Bely
  0 siblings, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2024-02-29  8:14 UTC (permalink / raw)
  To: Schultschik, Sven, isar-users

On Wed, 2024-02-28 at 18:05 +0000, Schultschik, Sven wrote:
> On Wed, 2024-02-28 at 15:57 +0300, Uladzimir Bely wrote:
> > On Wed, 2024-02-28 at 12:52 +0000, 'Schultschik, Sven' via isar-
> > users
> > wrote:
> > > Hi,
> > > 
> > > I found a bug in the fTPM build that it has a bug if more than 16
> > > cores
> > > are available. On a machine with 20 cors the my build faild
> > > constantly.
> > > Limit hardcoded the ftpm build to -j 16 fixed the issue.
> > > 
> > > Is there a correct ISAR way to limit $(PARALLEL_MAKE) to max 16?
> > > 
> > > Or do I have to write me an own if (nproc > 16) -j 16 variable?
> > > 
> > > Thanks
> > > 
> > > Sven
> > > 
> > 
> > Hello.
> > 
> > Just export it before the build:
> > ```
> > export PARALLEL_MAKE="-j 10"
> > ```
> > 
> > It should work both with build using kas-container and ordinary
> > build.
> 
> Hi
> 
> sure that would work, but I wanted to just limit for that one recipe
> and not for the complete build.
> 
> So it can be included directly into the recipe and be used by others.

Hello

```
PARALLEL_MAKE = "-j 10"
```

Adding this to the recipe also works.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-29  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 12:52 limit PARALLEL_MAKE Schultschik, Sven
2024-02-28 12:57 ` Uladzimir Bely
2024-02-28 18:05   ` Schultschik, Sven
2024-02-29  8:14     ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox