<div dir="ltr">One other thought.  Helen Ginn&#39;s CCPXFEL project does activate the boost::threads library for the build.  Luc Bourhis made this possible.  Some documentation for this should exist on the <a href="http://cci.lbl.gov/xfel">cci.lbl.gov/xfel</a> but the power is currently out at LBNL due to a wild land fire.  The lab is evacuated!  No web access right now.<div><br></div><div>Having said that I&#39;m not too keen on the boost::threads avenue for moving to KNL.  We are investigating a combination of using the existing cctbx/python multiprocessing tools as Nigel described, plus MPI and OpenMP.</div><div><br></div><div>Nick</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Nicholas K. Sauter, Ph. D.<br>Senior Scientist, Molecular Biophysics &amp; Integrated Bioimaging Division<div>Lawrence Berkeley National Laboratory<br>1 Cyclotron Rd., Bldg. 33R0345<br>Berkeley, CA 94720<br>(510) 486-5713<br></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 2, 2017 at 2:13 PM, Dr. Robert Oeffner <span dir="ltr">&lt;<a href="mailto:rdo20@cam.ac.uk" target="_blank">rdo20@cam.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">If efficient threading is desired I would have thought that these days GPUs are all the rage and that it would be worth looking into openCL and CUDA implementations for doing this.<br>
<br>
On an unrelated note are there any thoughts on moving CCTBX to Python3? One issue, which may not be insurmountable is that SCons does not yet support Python3.<br>
<br>
Rob<br>
<br>
<br>
<br>
-----Original Message----- From: <a href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac.uk</a><br>
Sent: Tuesday, August 1, 2017 10:16 PM<br>
To: <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
Subject: Re: [cctbxbb] Should we enable boost threads in bootstrap?<div><div class="h5"><br>
<br>
Lee,<br>
<br>
End game for us is moving to “proper” threading i.e. lots of threads / cores working on one problem in one address space - be it regular 20 core xeon or 64 core KNL<br>
<br>
Boost threads came up in conversation today as a C++11 like threading model, so I wondered if it would be a stepping stone...<br>
<br>
Don’t have this book, maybe should get it….<br>
<br>
Cheers Graeme<br>
<br>
<br>
<br>
On 1 Aug 2017, at 18:14, Lee O&#39;Riordan &lt;<a href="mailto:loriordan@lbl.gov" target="_blank">loriordan@lbl.gov</a>&lt;mailto:<a href="mailto:loriordan@lbl.gov" target="_blank">lori<wbr>ordan@lbl.gov</a>&gt;&gt; wrote:<br>
<br>
Graeme, Nigel,<br>
<br>
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>
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>
<br>
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>
Best,<br>
Lee.<br>
<br>
On Tue, Aug 1, 2017 at 9:36 AM, Nigel Moriarty &lt;<a href="mailto:nwmoriarty@lbl.gov" target="_blank">nwmoriarty@lbl.gov</a>&lt;mailto:<a href="mailto:nwmoriarty@lbl.gov" target="_blank">nwm<wbr>oriarty@lbl.gov</a>&gt;&gt; wrote:<br>
Graeme<br>
<br>
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?<br>
<br>
Articles on multiprocessing in cctbx.<br>
<br>
<a href="https://www.phenix-online.org/newsletter/CCN_2017_01.pdf#page=6" rel="noreferrer" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2017_01.pdf#pag<wbr>e=6</a><br>
<br>
<a href="https://www.phenix-online.org/newsletter/CCN_2013_07.pdf" rel="noreferrer" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2013_07.pdf</a><br>
<br>
<a href="https://www.phenix-online.org/newsletter/CCN_2013_01.pdf" rel="noreferrer" target="_blank">https://www.phenix-online.org/<wbr>newsletter/CCN_2013_01.pdf</a><br>
<br>
<br>
Cheers<br>
<br>
Nigel<br>
<br>
---<br>
Nigel W. Moriarty<br>
Building 33R0349, Molecular Biophysics and Integrated Bioimaging<br>
Lawrence Berkeley National Laboratory<br>
Berkeley, CA 94720-8235<br>
Phone : <a href="tel:510-486-5709" value="+15104865709" target="_blank">510-486-5709</a>&lt;tel:(510)%20486-<wbr>5709&gt;     Email : NWMoriarty@LBL.gov&lt;mailto:<a href="mailto:NWMoriarty@LBL.gov" target="_blank">NWMo<wbr>riarty@LBL.gov</a>&gt;<br>
Fax   : <a href="tel:510-486-5909" value="+15104865909" target="_blank">510-486-5909</a>&lt;tel:(510)%20486-<wbr>5909&gt;       Web  : <a href="http://CCI.LBL.gov" rel="noreferrer" target="_blank">CCI.LBL.gov</a>&lt;<a href="http://cci.lbl.gov/" rel="noreferrer" target="_blank">http://cci.lbl.gov<wbr>/</a>&gt;<br>
<br>
On Tue, Aug 1, 2017 at 7:54 AM, &lt;<a href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac.uk</a>&lt;m<wbr>ailto:<a href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac<wbr>.uk</a>&gt;&gt; wrote:<br>
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>
<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>&lt;mail<wbr>to:<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&gt;<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>
<br>
<br>
______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&lt;mail<wbr>to:<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&gt;<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>
<br>
<br>
______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&lt;mail<wbr>to:<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&gt;<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>
<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>
<br>
<br></div></div>
---<br>
This email has been checked for viruses by AVG.<br>
<a href="http://www.avg.com" rel="noreferrer" target="_blank">http://www.avg.com</a> <br><div class="HOEnZb"><div class="h5">
______________________________<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>
</div></div></blockquote></div><br></div>