Hi Jason,<br><br>I am also interested in this issue.<br><br>My project involves MPFR which is built on top of GMP. I recently started optimizing the performance of MPFR and GMP using the Intel architecture. The learning curve of the whole set of Intel tools is quite steep so I don't have much progress yet.
<br><br>What I know is that Intel has reimplemented GMP in their MKL library. So I guess I will try compiling MPFR on top of the Intel version of GMP and see how it goes. The next step might be to parallelize the MPFR routines as what you've suggested...
<br><br>Could you please give some pointers on how to do these types of parallelization? <br><br>Thanks<br><br>-M<br><br><div><span class="gmail_quote">On 1/11/07, <b class="gmail_sendername">Jason Martin</b> <<a href="mailto:jason.worth.martin@gmail.com">
jason.worth.martin@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>Out of curiosity, I recently tried a naive multi-threaded
<br>multiplication scheme (using pthreads) and got a speed-up of about 25%<br>for extremely large operands (over 2000 limbs). I was just using<br>simple "textbook" style multiplication (break the larger operand in
<br>half, do two multiplies using mpn_mul, then shift/add back together).<br>I got similar results on a Woodcrest running OS X and a dual core<br>Opteron running Linux.<br><br>I suspect that a quad-core CPU in which all the cores share the L2
<br>cache could really benifit from a Karatsuba-style multi-threaded<br>multiply since the three multiplies could run in parallel without<br>having to go off-chip for memory accesses.<br><br>Is anyone working on this already? Does anyone care?
<br><br>--jason<br><br>--<br>-----------------------------------------------------------<br>Jason Worth Martin<br>Asst. Prof. of Mathematics<br>James Madison University<br><a href="http://www.math.jmu.edu/~martin">http://www.math.jmu.edu/~martin
</a><br>phone: (+1) 540-568-5101<br>fax: (+1) 540-568-6857<br><br>"Ever my heart rises as we draw near the mountains.<br>There is good rock here." -- Gimli, son of Gloin<br>_______________________________________________
<br>gmp-discuss mailing list<br><a href="mailto:gmp-discuss@swox.com">gmp-discuss@swox.com</a><br><a href="https://gmplib.org/mailman/listinfo/gmp-discuss">https://gmplib.org/mailman/listinfo/gmp-discuss</a><br></blockquote></div>
<br>