Bug 1030

Summary: Enable compilation of PyPowersim on non-power platforms.
Product: Libre-SOC's first SoC Reporter: Konstantinos Margaritis (markos) <konstantinos>
Component: Source CodeAssignee: Konstantinos Margaritis (markos) <konstantinos>
Status: RESOLVED FIXED    
Severity: enhancement CC: libre-soc-bugs, lkcl
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Linux   
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 }

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:
 
https://libre-soc.org/irclog/%23libre-soc.2023-03-20.log.html#t2023-03-20T13:21:39

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
https://libre-soc.org/irclog/%23libre-soc.2023-03-19.log.html#t2023-03-19T21:03:19

https://libre-soc.org/irclog/%23libre-soc.2023-03-20.log.html#t2023-03-20T09:20:08

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