Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5240

Debian • Re: GP/PARI CALCULATOR on RISC-V Debian

$
0
0

Code:

ubu@raspberrypi:~ $ podman run -ti riscv64/debian:sidWARNING: image platform ({riscv64 linux  [] }) does not match the expected platform ({arm64 linux  [] })root@c4e961565945:/# apt updateGet:1 http://deb.debian.org/debian sid InRelease [202 kB]Get:2 http://deb.debian.org/debian sid/main riscv64 Packages [9655 kB]Fetched 9857 kB in 22s (439 kB/s)69 packages can be upgraded. Run 'apt list --upgradable' to see them.root@c4e961565945:/# apt install pari-gpUpgrading:  gcc-14-base  libgcc-s1  libssl3t64  libstdc++6  libtinfo6  ncurses-bin  openssl-provider-legacy  perl-baseInstalling:  pari-gp........root@c4e961565945:/# root@c4e961565945:/# gpReading GPRC: /etc/gprcGPRC Done.                                      GP/PARI CALCULATOR Version 2.17.0 (released)                           Risc-V/64 running linux (riscv64/GMP-6.3.0 kernel) 64-bit version                              compiled: Oct  6 2024, gcc version 14.2.0 (Debian 14.2.0-5)                                        threading engine: pthread, nbthreads = 4                                     (readline v8.2 enabled, extended help enabled)                                         Copyright (C) 2000-2024 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER.Type ? for help, \q to quit.Type ?18 for how to get moral (and possibly technical) support.parisize = 8000000, primelimit = 1048576, factorlimit = 1048576?

Code:

root@c4e961565945:/# inxi -c 5CPU: quad core Model N/A (-MCP-) speed/min/max: 0/600/1800 MHz Kernel: 6.6.51+rpt-rpi-v8 riscv64Up: 5h 30m Mem: 910.7 MiB/7.63 GiB (11.7%) Storage: 465.76 GiB (9.5% used) Procs: 3 Shell: Bashinxi: 3.3.36root@c4e961565945:/#
It looks like magic. What's the performance actually like inside the container?

Code:

root@ed8c03665d9a:~# nano pn52.gproot@ed8c03665d9a:~# gpReading GPRC: /etc/gprcGPRC Done.                                                                          GP/PARI CALCULATOR Version 2.17.0 (released)                                                               Risc-V/64 running linux (riscv64/GMP-6.3.0 kernel) 64-bit version                                                                  compiled: Oct  6 2024, gcc version 14.2.0 (Debian 14.2.0-5)                                                                            threading engine: pthread, nbthreads = 4                                                                         (readline v8.2 enabled, extended help enabled)                                                                             Copyright (C) 2000-2024 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER.Type ? for help, \q to quit.Type ?18 for how to get moral (and possibly technical) support.parisize = 8000000, primelimit = 1048576, factorlimit = 1048576? default(parisize,640000000)  ***   Warning: new stack size = 640000000 (610.352 Mbytes).? #timer=1%1 = 1? read("pn52.gp")?? ##  ***   last result: cpu time 6min, 54,608 ms, real time 6min, 56,277 ms.? \qGoodbye!root@ed8c03665d9a:~#
>It looks like magic. What's the performance actually like inside the container?

Yes, it is like magic to see all those million of decimal digits of 'Perfect Number #52' getting extracted with just two lines pf pari/gp script.
The container took x4 of the ["? read("pn52.gp")
? ##
*** last result: cpu time 1min, 33,142 ms, real time 1min, 34,260 ms.
? \q"] time on the same rPi-4/8 SBC .

Statistics: Posted by geev03 — Wed Nov 20, 2024 8:38 am



Viewing all articles
Browse latest Browse all 5240

Trending Articles