[Libre-soc-isa] [Bug 686] create Power ISA test API

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 9 21:16:22 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=686

--- Comment #19 from Jacob Lifshay <programmerjake at gmail.com> ---
One other thing, I'd like to request that the test API be designed with
parallelism in mind...python usually uses running separate processes with each
process running some of the tests, see pytest-xdist's docs for an explanation,
see .

Running tests in parallel can make it >12x as fast for me to run tests (since I
have a 12-core/24-thread cpu).

For an example of making a test parallelizable, see:
https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/fu/mul/test/test_pipe_caller_long.py;h=d136361260e596f737eb50e94953efb56c1d2a50;hb=49bf0a79fa16d2d524e3d1501858a42166ee6d61#l226

Note how there are 16 separate unittest test cases test_mul_pipe_3_arg_{0..15}
that each run 1/16 of the test, which allows test runners like pytest with
pytest-xdist to run each in parallel, saving a bunch of time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list