Bug 1030 - Enable compilation of PyPowersim on non-power platforms.
Summary: Enable compilation of PyPowersim on non-power platforms.
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- enhancement
Assignee: Konstantinos Margaritis (markos)
Depends on:
Reported: 2023-03-17 09:25 GMT by Konstantinos Margaritis (markos)
Modified: 2024-03-10 20:31 GMT (History)
2 users (show)

See Also:
NLnet milestone: NLnet.2022-08-107.ongoing
total budget (EUR) for completion of task and all subtasks: 2000
budget (EUR) for this task, excluding subtasks' budget: 2000
parent task for budget allocation: 1027
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:
lkcl = {amount=400, submitted=2024-02-26, paid = 2024-03-08 } donated = {amount=1600, submitted=2024-02-26, paid = 2024-03-08 }


Note You need to log in before you can comment on or make changes to this bug.
Description Konstantinos Margaritis (markos) 2023-03-17 09:25:32 GMT
In the implementation of some C functions in SVP64, notably in the tickets:

https://bugs.libre-soc.org/show_bug.cgi?id=227 (vp8)
https://bugs.libre-soc.org/show_bug.cgi?id=228 (vp9)
https://bugs.libre-soc.org/show_bug.cgi?id=229 (av1)
https://bugs.libre-soc.org/show_bug.cgi?id=1007 (chacha20)

All SVP64 functions were executed through a C wrapper on the Python SVP64 Simulator (pypowersim). The compilation and execution assumed that it would take place on a native Power platform. However there is nothing that requires the code being executed on such a platform, as the simulator is written in Python and can be executed on an x86 system or other. As the number of developers that will use x86 exceeds those who do native development on Power, it is of benefit that we enable compilation and execution of SVP64 through the wrapper on x86 systems as well.
Comment 1 Luke Kenneth Casson Leighton 2023-03-20 13:24:34 GMT
it would be very helpful to add backports libgtest-dev:

has to be done *very carefully* with:

    apt-get -t buster-backports install -y libgtest-dev/buster-backports
Comment 2 Luke Kenneth Casson Leighton 2023-04-01 12:29:12 BST


closing this one as done, with compilation succeeding on x86.
nicely done.