Karim Belabas on Sat, 12 Oct 2024 15:04:30 +0200


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

Re: PARI with --enable-tls


* Max Alekseyev [2024-10-12 14:56]:
> Hello,
> 
> Pari can be compiled with the option:
> --enable-tls  enable thread-local stack
> 
> What are the advantages/disadvantages of using it? (with combination of
> --mt=pthread if that matters)

It's implied by --mt=pthread.

Without the latter, it builds a thread-safe version of the PARI library.
The downside is that it becomes a little slower. For instance the
dynamically linked gp-dyn binary ends up being about 25% slower on
many architectures; gp-sta is usually about 5% slower.

Cheers,

    K.B.
-- 
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/