| Bill Allombert on Mon, 05 Jun 2023 18:23:18 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Abnormous memory use for gaussian gcd()? |
On Mon, Jun 05, 2023 at 05:51:37PM +0200, hermann@stamm-wilbrandt.de wrote: > Transpiled GP code for 10000-digit number works fine: > > $ gp 10000.gp > ... > 39178247477405595462999004573259238447193580865522753006504996585341802644743745733315578184178833806642718982619192126965967031226198644279480298699929676[+++] > *** last result computed in 4,709 ms. > ? > > But even though I give 24G of my laptop's 32G to Pari, computation does not > complete. > What am I doing wrong? > Or is this a bug in Pari/GP? > Python 3.9, Pari/GP 2.15.3. > > $ grep ^parisize /etc/gprc > parisizemax = 24G > parisize = 24G > $ gp 36401.gp > Reading GPRC: /etc/gprc > GPRC Done. > ... > parisizemax = 24000000000, primelimit = 500000 > foobar > *** The result history is empty. When doing 'gp 36401.gp' there is no "result history" (that is "%1 = blah") so referencing it fails. Probably 36401.gp is using ## (or %). I suggest you try ./gp < 36401.gp I do not see anything that suggest there is a memory error. Cheers, Bill.