<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 29 October 2015 at 20:25, Julian Taylor <span dir="ltr"><<a href="mailto:jtaylor.debian@googlemail.com" target="_blank">jtaylor.debian@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow:hidden">should be possible by putting this into: ~/.numpy-site.cfg<br>
<br>
[openblas]<br>
libraries = openblasp<br>
<br>
LD_PRELOAD the file should also work.<br>
<span><br>
</span></div></blockquote></div><br></div><div class="gmail_extra">Thank!<br><br></div><div class="gmail_extra">I did some timings on a dot product of a square matrix of size 10000 with LD_PRELOADingĀ  the different versions. I checked that all the cores were crunching when an other than plain libopenblas/64 was selected. Here are the timings in seconds:<br><br><br>Intel i5-3317U:<br>/usr/lib64/libopenblaso.so<br>86.3651878834<br>/usr/lib64/libopenblasp64.so<br>96.8817200661<br>/usr/lib64/libopenblas.so<br>114.60265708<br>/usr/lib64/libopenblasp.so<br>107.927740097<br>/usr/lib64/libopenblaso64.so<br>97.<a href="tel:5418870449" value="+15418870449" target="_blank">5418870449</a><br>/usr/lib64/libopenblas64.so<br>109.000799179<br><br></div><div class="gmail_extra">IntelĀ  i7-4770:<br></div><div class="gmail_extra">/usr/lib64/libopenblas.so<br>37.9794859886<br>/usr/lib64/libopenblasp.so<br>12.3455951214<br>/usr/lib64/libopenblas64.so<br>38.0571939945<br>/usr/lib64/libopenblasp64.so<br>12.5558650494<br>/usr/lib64/libopenblaso64.so<br>12.4118559361<br>/usr/lib64/libopenblaso.so<br>13.4787950516<br><br></div><div class="gmail_extra">Both computers have the same software and OS. So, it seems that openblas doesn't get a significant advantage from going parallel in the older i5; the i7 using all its cores (4 + 4 hyperthread) gains a 3x speed up, and there is no big different between OpenMP and pthreads.<br><br>I am particullary puzzled by the i5 results, shouldn't threads get a noticeable speedup?<br><br><br></div><div class="gmail_extra">/David.<br></div><div class="gmail_extra"><br></div></div>