Re: Forprime and posix multithreading

Bill Allombert <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <aGL6ppcsytS10621@seventeen>
Hi Piercarlo,

You need to use pari_thread_alloc/pari_thread_start/pari_thread_close
to initialize the threads.

See the example file examples/thread.c.
This is documented in the appendix B of the libpari manual

Note that an alternative that wraps around pthread is examples/pari-mt.c, the
documentation is in chapter 4 of the Developer's Guide to the PARI library

If you are using Windows, I recommend to use the Windows subsystem for Linux for
running parallel code.

Cheers,
Bill.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.