Any interest in multi-threaded code?

Richard Foster r-foster at
Thu Apr 5 07:22:57 UTC 2018

>Presumably, that idea will work.
>But based on my experience with multi-threading,
>because of various overheads and latencies involved,
>you have to make sure that there is enough work to do per
>thread to make it worthwhile.  Parallelizing the inner loops
>like this may or may not yield the expected speedup.
>One would have to try to and intuition and experience
>makes me somewhat skeptical, but I'd be happy to be proved wrong.
It looks as though the majority vote is for parallelising at the outer 
level rather than the inner loop.

I'll leave that to more experienced hands, although I might have a 
private attempt at the inner version, just for my own interest.


More information about the gmp-devel mailing list