Bill Allombert on Mon, 20 Feb 2023 18:25:07 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Segmentation Fault in Pari/GP from gp2c-run
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Segmentation Fault in Pari/GP from gp2c-run
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 20 Feb 2023 18:23:55 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1676913831; c=relaxed/relaxed; bh=3A76cMtJ4/Yp5sfermQPDTSFay/AYbXd7v9Wn6M5ENU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=oCDN8m7Gw8+oFPWXrlPTEaXR3QMi5GH3gqAEYJAntI8mIIVq03bhqkmdkRY7DbQeV6aIh31/7dCeTAoLY8k9gYApNi9E9Peep19OxsVFdonlJdiWJK0VUv3tGEf3bwlw/2tPYLQxQ+p1ug46mo6hgGxKapbN4u6l59+pP6VPNXGty0W38R4eJjkCF3XzoqGBiRvoTRq/6eA72D6ougcbIq+mCm3RHnI3FmB6o5u2oWowWuKeoWoE/NYwxVgKsxmVcKXhWHZrBYpkV0BLc7QfhFzH7cqeB7M2lb2oNTbY+btBBwAFit8yf88I+Ajs2q5Z4ZdK3P8GAFbc4R+QzC9NBvB4q3kNMKdOMRxyBEn0kC5XYmCArbrVolUG4gwFRs6OjS25fxXSUzfPmNYAjmPj6ambkN5hI7FIa/40G3dYluMICFU4PvEskG3TIxMJ7Cu/5ea966BB+5qVldF5b+W7DAahJf4lRCvrF2KGyUITHJR4x0S+e76GaxpGjL1Y9OCTIkHl1YUnav44sptft4OXTshR+gbKF9I7REMA5hMhPIHE4fOfMzz7zYeSGgXpXiIId0iZkp/SpnjPxq/1M8Y0CN6a+0T1s4og7uOEEyNnD2HDOKbXafuK93uVF0rdKgy7d0DW2792YYWhoKUcY2h+tMqrGhXzpUoc73LMSY4IEqk=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1676913831; cv=none; b=hpTYD8hz+Hv1qLIV50Ag1otKBuwEP3Qqd0vG/ok9dx48ARXZD8K/lTO4FZVhbbYB8/BlHL5uOKsAGTY7DDp9umMm01BZep6CRhr0bf3fJdf12hxI/IWOfArgun6sou9a/Epa0XVu+P5DKCT7mKWBybIi2ZzsZb5G45favpwL3n3NAUR7OeqMRFRO2Lm/atCSRVHmgiqbHoynGtfmk2ELDlY5reFJjfMPrucgG7mkHboMNFuxoOWHeNF8/YuND0YkxPRl2JKSepUzAERTpXXEco9mvy8eTimwk14kzFEgfbsqX0gyv3QlIpoiOB71WoJPgLPujjWPn2H1MGo7Efc1My+UfUkwtrH7vxk35JUNHHCakCb/WLcqKAUNX9OZTZBpW4gw9r7KfCTVVJQ2TwRphbeERdX8XqCSBoYNQOTEEXrxEX20Nj9uXgIOOdSEwrvja5b6TddOIKkcb1+ZkRkEizii1muU+waQtTqevqWMi8wJ+PURz01jbe0JM1XxxoNL64dgidShJE0CVQ0hl55K/69Iqec2Xhh4uqeiIp37hnPO0RvPetL6XD7WikzBai2yMQnmByPujaRGc7whwwQu0jyP0hBbhFGUnf09FOo9LRjqAu5vJaqGJwhSmvdXf5NHAQUX1KwrlDR74oBohRgz2UpEhMiT5qXBqPjXJWZXpsI=
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 20 Feb 2023 18:25:07 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1676913831; bh=3A76cMtJ4/Yp5sfermQPDTSFay/AYbXd7v9Wn6M5ENU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Rvp6CCalkQC9G3CSwUxpd5X1wvo4FLT7LADAgKHzFIsTdihsZrxZ3yyhxUmrm8mXg xIJXWFAK0dnkzfIr1AiIH6tVHpDbVlTFeqqM7wAFce5qdD3Svt1d25JWUELVTbdnVI /TiIL9dZI58liGkQ5ioPc1uYBo/+YMDli00FPfjuZ0eZDPGk7ahNRWQmsUj4rwzwhg 9eRW9RADaMk6HZAM9b45J4xdjVlZnW7AMIDD3a0SOUViPpdLAcl4HdXqJthGnMqYkC 0MhskV3QacqOMAerwncL1d3dUUQL+4G7YS8rgVwL9tkXJbpBuVcrrCCiKGyv2W1rdA YiF5SWQCwi/96mF5DMABJqb4s3oxU+QtCazUMMB0uUy+OIHlElcGJuHxFcxRbK//ju hAxFDKnODMomTz2XyPwAb5zxKgK/y4sefaPYBpKl8pRNpiULAiyepala8K/foyAhNu 14L6Er3z5ZN/3ypvrXLW1nuOmH5XAFTpORzKeY7vNwZj3LMpoXnCU5v2hYFl0DZYtS Oe7+XtPWsHzKE/5YXwbWsBQcjOtEvP0JxifpHTmLSIALqndI/6BhjO1tqKNZniANeW 5M23KA1R9/h1LxyK5h6esIhP4y5kYVZOAUltak2vUkt32QcbXfolCFbbpFiw4EcZV7 juQqeEls38YllSfBQIlRFZb0=
- In-reply-to: <5E2C4C3B-6458-4367-90B9-9178F81E4C89@gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <6FB850AA-F6F6-4749-B8A9-A17181801B2D@gmail.com> <Y/JVJMiYvJXrpMeS@seventeen> <5E2C4C3B-6458-4367-90B9-9178F81E4C89@gmail.com>
On Mon, Feb 20, 2023 at 06:11:39AM -0800, Edmond Griffin wrote:
> Hello Bill,
>
> Thank you very much for your speedy reply and helpful suggestion. I
> replaced “warning” with “print” and was able to run my compiled code!
>
> Just for your information, the compiled code ran 1.4 times as fast as the
> regular gp. Less than I hoped, but I think the execution time is being
> dominated by accessing my hard disk.
There are ways to speed up gp2c by adding type annotation.
For example if some variables are always small integers,
you can add :small to their declaration. This way gp2c will use
C long instead of GP integers.
Cheers,
Bill.