Bill Allombert on Mon, 30 Jun 2025 12:40:23 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Forprime and posix multithreading
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Forprime and posix multithreading
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 30 Jun 2025 12:40:19 +0200
- Delivery-date: Mon, 30 Jun 2025 12:40:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1751280021; bh=ypD5MjWiKb4jnn3Lz/ZdNsNgeRtaW7Fq6QZdkEcBqmI=; h=Date:From:To:Subject:References:In-Reply-To:From; b=P6WRCg2oeBtw2hyDGzmlIk2oXLI/8CEruKQR/x8TJ6ETLZGtO854JD0o1d+ao3RAe 8JvZFU6mwwUHv/wMp2hDQdGN6eetyYvdy/5HAFRJ7sGHvgkpm9M8f1my2qql+YcGPI 54+XLj7aBMUVlF7EQq8tGsphJNSvI33EcjqhpFAifOOMH0wVoFV5nEka6Lz+1kneEU x0VkLeTDOS66l9grY1/lhjvxSGF+bhZCgvXY3tjUgUwI3cdb+34XmTEFECzSfWIL15 QInc8pSxU1blqn2WSaM95uFOCVe1p8/ttVrMVawOcCb5L6Xzlomv6H6yqAWzUjvAAk aw90tBbT8W2SaqEBWUS0NjcDU7qoLYr+KYWos0c0DVgZxgyIvbx+xN0bc9pWOB9juH bgv9d7mCMEqCRmArATK+EUW0Em3P+EgxPd/+8n22sxgTJM7d5eIWHzTAIxoTidyPTk O3yN0xln1++eH5FTjZJvoKpvbFcKc0hKG8gyHaW1XwvIOrbMW9zNvT0Uu6P7ezBQn2 LULxywTB2jxAIRmSnJ4WhM/5JSjqakb/T8UgdMX/9+3I5ap1nATkqXh6voQMPfz0tv l/z0sw/m4LZnJloYe1P96NpDrO2T2ebo0dgZvZ2UJUDlJPHKFiV3JLcyV7Eyp1tumw 6hlPUJoM2UzZui8Qn/zxY9Bk=
- In-reply-to: <DU0SPRMB00579D42B2DB40634CC7787DF346A@DU0SPRMB0057.EURP195.PROD.OUTLOOK.COM>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <DU0SPRMB00579D42B2DB40634CC7787DF346A@DU0SPRMB0057.EURP195.PROD.OUTLOOK.COM>
On Mon, Jun 30, 2025 at 10:14:13AM +0000, Piercarlo Giannattasio wrote:
> Good morning,
> I'm trying to code a prime number generator in a specified range, using GP
> and C, and I need to reduce processing times.
What is a prime number generator ? How is it different from forprime ?
> I'm trying to use forprime and posix multithreading, but when executing the
> code I'm exceeding the parisizemax. I've tried with 1-15 threads, assigning
> 16GB of memory only to PARI, but I still get the same error: sometimes it
> only calculates the first iteration of forprime_next...
You need to set threadsizemax too.
> Also, is there any technical documentation for the C implementation, besides
> the one I'm studying (User Guide, Tutorial, Introduction to gp2c,
> Introduction to Parallel GP) ?
Thre are the libpari manual, the examples directory, and of course the PARI source code.
But I suggest you send me your code, I will tell you what you need to read.
Cheers,
Bill.