Forprime and posix multithreading
Piercarlo Giannattasio <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <DU0SPRMB00579D42B2DB40634CC7787DF346A@DU0SPRMB0057.EURP195.PROD.OUTLOOK.COM> |
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. 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... 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) ? Piercarlo