<div dir="ltr"><div><div><div><div>Graeme, Nigel,<br><br></div>I would be a little bit worried about Boost threads when it comes to our KNL port of cctbx. In this instance the use of OpenMP or Intel TBB (at least accordingly to Intel docs) would be optimal over boost threads (or pthreads, etc.)[see Intel Xeon Phi High Performance Programming, KNL edition P155 --- no ebook, sorry]. That being said, there is no way to know unless we try it out first, but it isn&#39;t something we can test right now.<br><br></div><div>As for Threads vs MP, this again falls into our KNL port, where threads would be better suited (and become a necessity for optimal performance) when running on high-core count devices. If the OpenMP functionality exists, then maybe this would be a more portable way of taking advantage of all cores/hyperthreads.<br></div><div><br></div>In this instance I think turning boost threads on for a build-by-build basis would be better, rather than as a default? Though if I am wrong, feel free to correct me.<br><br></div>Best,<br></div>Lee.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 1, 2017 at 9:36 AM, Nigel Moriarty <span dir="ltr">&lt;<a href="mailto:nwmoriarty@lbl.gov" target="_blank">nwmoriarty@lbl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Graeme<div><br></div><div>The short answer is &quot;Why?&quot; but that may start a very long discussion. There are a number of multiprocessing modules in easy_mp that seem to cover all the bases. Are there situations where threading is &quot;better&quot; to multiprocessing?</div><div><br></div><div>Articles on multiprocessing in cctbx.</div><div><br></div><div><a href="https://www.phenix-online.org/newsletter/CCN_2017_01.pdf#page=6" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2017_01.pdf#pag<wbr>e=6</a><div><br></div><div><a href="https://www.phenix-online.org/newsletter/CCN_2013_07.pdf" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2013_07.pdf</a></div><div><br></div><div><a href="https://www.phenix-online.org/newsletter/CCN_2013_01.pdf" style="font-size:12.8px" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2013_01.pdf</a><br style="font-size:12.8px"></div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_5548832614253184202gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Cheers<div><br></div><div>Nigel<div><br></div><div>---</div><div>Nigel W. Moriarty<br>Building 33R0349, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory<br>Berkeley, CA 94720-8235<br>Phone : <a href="tel:(510)%20486-5709" value="+15104865709" target="_blank">510-486-5709</a>     Email : NWMoriarty@LBL.gov<br>Fax   : <a href="tel:(510)%20486-5909" value="+15104865909" target="_blank">510-486-5909</a>       Web  : <a href="http://CCI.LBL.gov" target="_blank">CCI.LBL.gov</a></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Tue, Aug 1, 2017 at 7:54 AM,  <span dir="ltr">&lt;<a href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Afternoon all,<br>
<br>
Should we do this? Any opinions? Could be useful for threads in a semi-portable way...<br>
<br>
Thanks &amp; cheerio Graeme<br>
<span class="m_5548832614253184202HOEnZb"><font color="#888888"><br>
--<br>
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.<br>
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br>
<br>
<br>
______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailm<wbr>an/listinfo/cctbxbb</a><br>
</font></span></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/<wbr>mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div>