Bill Allombert on Thu, 19 Sep 2024 22:22:50 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: concurrent computation of a function
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: concurrent computation of a function
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 19 Sep 2024 22:22:46 +0200
- Delivery-date: Thu, 19 Sep 2024 22:22:50 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1726777368; bh=kmr57aFHkVR01J5nK3Qn+bwCBuWS6x50OVWv8Q9ycvE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=TmG7/pAMqs2wjfWq/TuWk3wKtpxzfCWv/l9SXVL1l3QR/vunkHfMERDMtvy9bMonI NBKyvnScYZBhdLTj8gex8Wqju3F5cURUEoFxcrvhIDe9t63fYjwFtjZ+LnINnfUyQX yefQ886GlQ7g8zMKcI/3HNJh712S61bXB6RradPIxn2KatRcQ5O95NG27g4Wiqa+xF tKAW5Ek5ESChzC6lyIaRm7gtiK2U0UwL/kUxi76mLZivOicTdMSIVZuUxVEPymb79R xItxmz2pkOADndUXBIf7z4KmwGw/teUAow1tZoeCQSXaKwPHMrh3hbKnzLGTudY/mA P7qdtX1A4EqSa0/UhHz+rYLbnwtLVlebjNdx+SEhk7F2urHnIOLWBdID3JzqGUmwvb GNtEKT0Jdw6C9SrN78X3krv4rtKPKp2VRFM4an+ye96PDb0/3iyFyzdUUjZdGnPfDa rDXTv/Fm7LkY9xdux2DvKOQScUvaFmsM0YW6vu5aiy9ZL8eDzQqAURr30rLAsCtjM+ ZxaWaG5IorsCaLRxkhHmzFmWo5Jsjppw8iI7MuX8whjPNoqm5RsCTK/Q/xOJUd+Ia+ faT3hGPq3L0VIh3GftGvM2cPVRZhR80pZkCvlClonxBIDVC83J1MaCAB5zb4hraKfD x/NqaXuIrLNTQ2CsxQR5/FJg=
- In-reply-to: <CAJkPp5NVHHuumcKbfNjf2RnsTQVB6GbanfXp7_NtxGriGsJ5RA@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5NVqG51fQ_UiGFc1MbVLUiV6QhY5fCg1O67R-SkhhG-5g@mail.gmail.com> <ZuxJ2hm6tHJAMZQ3@seventeen> <CAJkPp5MMFr=AG2=fOhrhX-DvdAnwstQg9VOAh3eMxnauvKvf+g@mail.gmail.com> <Zuxk_vOhqiPA13X6@seventeen> <CAJkPp5NVHHuumcKbfNjf2RnsTQVB6GbanfXp7_NtxGriGsJ5RA@mail.gmail.com>
On Thu, Sep 19, 2024 at 03:25:32PM -0400, Max Alekseyev wrote:
> Using "seriesprecision" as a semaphore for communication between processes
> is a neat idea, but in my case one of the functions relies on integer
> factorization, which may or may not take a long time.
> I do not see how factor() function can be terminated if the other function
> signals it to end.
> Or is there a way?
Not without changing the C code.
If you are really desperate you can run each computation in a different
GP instances, using extern().
Cheers,
Bill