hermann on Tue, 05 Dec 2023 20:45:31 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PARI/GP pthread questions


On 2023-12-04 10:36, Bill Allombert wrote:
On Sun, Dec 03, 2023 at 05:04:58PM +0100, hermann@stamm-wilbrandt.de wrote:
What I asked for was not changing behavior.
I asked about correcting doc (3.2.24 wrt pthread):
https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.15.4/users.pdf#page=125

Indeed, but what wording do you suggest, that is understandable by someone
with little experience with parallel computing ?

I really like the GP notation of "#" for "number of" in eg. "#binary(n)".

Given that the reader of PARI/GP doc knows that, replace

• pthread: number of threads (unlimited, default: number of cores)

with (for current implementation)

• pthread: number of threads (unlimited, default: number of hardware threads^1)
...
^1 = #sockets * #cores_per-socket * #threads_per_core

One could append " (as reported by lscpu under Linux)" or not.

Regards,

Hermann.