Skip to contentSkip to conversation

test/py: use actual core count for parallel builds

PATCH New Heinrich Schuchardt 4 participants 4 messages May 30, 2020 – Jun 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/py: use actual core count for parallel builds

When building U-Boot we should not blindly use make -j8 but consider the actual core count given by os.cpu_count().

---
 test/py/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/conftest.py +1 -1
index e3392ff6bc..30920474b3 100644
@@ -156,7 +156,7 @@ def pytest_configure(config):
                 o_opt = ''
             cmds = (
                 ['make', o_opt, '-s', board_type + '_defconfig'],
-                ['make', o_opt, '-s', '-j8'],
+                ['make', o_opt, '-s', '-j{}'.format(os.cpu_count())],
             )
             name = 'make'
 

--
2.26.2

#1 lore raw

PATCH 1/1 test/py: use actual core count for parallel builds

Quoted 9 lines · Heinrich Schuchardt

When building U-Boot we should not blindly use make -j8 but consider the actual core count given by os.cpu_count().

---
 test/py/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I did send a patch to make this use buildman, but people were not keen on the extra dependency.

Quoted 16 lines
test/py/conftest.py +1 -2
index e3392ff6bc..30920474b3 100644
@@ -156,7 +156,7 @@ def pytest_configure(config):
                 o_opt = ''
             cmds = (
                 ['make', o_opt, '-s', board_type + '_defconfig'],
-                ['make', o_opt, '-s', '-j8'],
+                ['make', o_opt, '-s', '-j{}'.format(os.cpu_count())],
             )
             name = 'make'
 
--

2.26.2

#3 lore raw

PATCH 1/1 test/py: use actual core count for parallel builds

In reply to Heinrich Schuchardt
Quoted 6 lines · Heinrich Schuchardt

When building U-Boot we should not blindly use make -j8 but consider the actual core count given by os.cpu_count().

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200603/eec2c2df/attachment.sig>