Bill Allombert on Thu, 22 Jun 2017 19:24:50 +0200


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

Re: GMP memory allocation and Macaulay2 (cont.)


On Wed, Jun 21, 2017 at 06:41:08PM -0400, Doug Torrance wrote:
> On 06/21/2017 06:22 PM, Bill Allombert wrote:
> >>Is this helpful?
> >
> >This does not seems related to GMP.
> >Are you using thread ? Do you use the thread-safe version of PARI ?
> 
> Thanks for the quick reply!
> 
> Yes, Macaulay2 uses threads.  I'm currently building against the PARI in
> Debian unstable, which I believe is thread-safe (--mt=pthread in d/rules).

It is thread-safe but you need to allocate separate pari stacks for all
threads.

Is Macaulay known to work with PARI with threads ?
How does it works ? You have to be very careful to do it correctly.

Cheers,
Bill.