Jeffrey Walton on Wed, 07 Apr 2021 10:30:17 +0200


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

Re: pari_thread_sync missing in PARI/GP 2.13.0


On Wed, Apr 7, 2021 at 4:05 AM Bill Allombert
<Bill.Allombert@math.u-bordeaux.fr> wrote:
>
> On Wed, Apr 07, 2021 at 03:01:19AM -0400, Jeffrey Walton wrote:
> > Hi Everyone,
> >
> > I'm using PARI/GP 2.13.0. I'm trying to build Jancar's ecgen. The
> > build is failing due to a missing pari_thread_sync .
> >
> > I looked in the developer guide [1] but I don't see the replacement or
> > what should be used nowadays.
>
> See COMPAT:
>
>   - pari_thread_sync is not needed anymore and has been removed.
>
> Just remove the call. Synchronization is done automatically by
> pari_thread_alloc/pari_thread_start now.

Ack, thanks.

Does something like the following look about right?

#if PARI_VERSION_CODE < PARI_VERSION(2,12,0)
    pari_thread_sync();
#endif

I used 2.12 because the functions seemed to change around them.

Jeff