John Cremona on Fri, 11 Sep 2020 09:43:17 +0200


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

Re: gp2c question


Thanks Bill.  As a follow-up question, is it possible to use the
parallel computation system with gp2c?  I have a very simple script
which is doing a Monte Carlo sampling, and obviously I want to sample
as many points as I can.  The script takes 28m7s  for 10^9 samples and
10x that (actually 4h27m20s) for 10^10.  If I could run it in parallel
x10 then I could get to 10^11 without waiting too long.  Of course I
can also run the script I have 10 times in parallel using gnu parallel
or similar -- perhaps that is easier anyway.

John

On Thu, 10 Sep 2020 at 22:33, Bill Allombert
<Bill.Allombert@math.u-bordeaux.fr> wrote:
>
> On Thu, Sep 10, 2020 at 02:52:59PM +0100, John Cremona wrote:
> > Thanks for the quick reply, Bill!
> >
> > I'm not worried about the warning, as long as nothing actually bad is
> > happening.  I had tried changing the constants 1 and 2 in the
> > expression to 1.0 and 2.0, but there were still these warnings.
>
> Of course.
>
> We have fixed this in PARI master branch 34345cfc90
>
> Note however that a lot of functions either
> - are still lacking the gp2c description for real
> - or have extension to the complex domain which mean gp2c cannot
>   know whether the result will be real or complex , for example sqrt(x:real)
>   and log(x:real) can be t_COMPLEX.
>
> Thanks for reporting this issue!
> Bill
>