<div dir="ltr"><div><br></div><div>yes, MT is *not* implemented in GATE : it would required some (a lot of ?) effort to make the code compliant and we agreed in the collaboration that, at the moment, it is not worth it. Really good speed up can be obtained by launching several Gate simulation (with different random seed number). </div>
<div><br></div><div>David</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 7:36 AM, Jye Smith <span dir="ltr"><<a href="mailto:jye.smith@gmail.com" target="_blank">jye.smith@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">So MT is not yet implemented in Gate with G4 v10?</p>
<p dir="ltr">Thanks for the reply.</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On 3 Sep 2014 15:31, "David Sarrut" <<a href="mailto:David.Sarrut@creatis.insa-lyon.fr" target="_blank">David.Sarrut@creatis.insa-lyon.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello, <div><br></div><div>yes, Gate could yet only be compiled with MT=false. </div><div><br></div><div>Warning : Gate can be linked with G4 10.0 *only* with the development version of the source code available in git (develop branch), not the official release. </div>
<div><br></div><div>If you use both Gate and G4 directly, you may need two compiled versions of G4, with MT=false for Gate and with MT=true for your own G4 simulations that use MT. </div><div><br></div><div>No other modifications in the macro files.</div>
<div><br></div><div>Sincerely, </div><div>David</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 6:00 AM, Jye Smith <span dir="ltr"><<a href="mailto:jye.smith@gmail.com" target="_blank">jye.smith@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">Hi David,</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Ive just been through the process of installing Gatev7.0 development with G4v10.00.p02 on a fresh install of Ubuntu server 14 (testing in virtualbox).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I complied G4 with "cmake /home/ubuntu/geant4.10.00.p02 -DCMAKE_INSTALL_PREFIX=/home/ubuntu/geant4.10.00.p02-install -DGEANT4_INSTALL_DATA=OFF "</div>
<div class="gmail_extra">
<br></div><div class="gmail_extra">Is your comment below about <span style="font-size:13px;font-family:arial,sans-serif">GEANT4_BUILD_</span><span style="font-size:13px;font-family:arial,sans-serif">MULTITHREADED=false correct or should it be </span><span style="font-size:13px;font-family:arial,sans-serif">GEANT4_BUILD_</span><span style="font-size:13px;font-family:arial,sans-serif">MULTITHREADED=ON for MT?</span></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Compiling as above with MT=OFF I can only see 1 of 4 CPUs running when running a simulation. Besides turning MT=ON is there any other changes required to the macs?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Cheers</div><span><font color="#888888"><div class="gmail_extra">Jye</div></font></span><div><div><div class="gmail_extra"><br></div><br>
<div class="gmail_quote">On Thu, Jul 10, 2014 at 3:21 PM, David Sarrut <span dir="ltr"><<a href="mailto:David.Sarrut@creatis.insa-lyon.fr" target="_blank">David.Sarrut@creatis.insa-lyon.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>the develop branch of the opengate git repository has been updated : Gate is now compatible with Geant4 10.0 <span style="font-family:arial,sans-serif;font-size:13px">(must be compiled with GEANT4_BUILD_</span><span style="font-family:arial,sans-serif;font-size:13px">MULTITHREADED=false). </span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">feedback welcome, </span></div><div><span style="font-family:arial,sans-serif;font-size:13px">have fun, </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">David</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Dec 2, 2013 at 2:37 PM, Marc Verderi <span dir="ltr"><<a href="mailto:verderi@in2p3.fr" target="_blank">verderi@in2p3.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Dear Ian,<br>
<br>
Just a few words to let you know about some feature of the Geant4 10.0 MT, and to partly answer your question. Geant4 10.0, which includes this MT capability, will be released in a few days. The MT scheme adopted is to process events (in Geant4 sense) in parallel, each thread dealing with a set of events, and sharing geometry and physics tables among the threads, to minimize the memory footprint.<br>
<br>
GATE will certainly need an adaptation. This is of course critical, but requires only a few lines of code. The G4RunManager as to be replaced by the G4MTRunManager. Users' actions (primary generator action, stepping action, event action, and run action if needed) become thread local actions : one instance of each of these actions is instantiated per thread. Sensitive detectors and fields become also thread local, and have to be instantiated in a new method of the detector construction : ConstructSDandField() which is executed once for each thread. In this way, events can be processed independently, in parallel. The overall mechanics is controlled by a master thread, the one launched at the application startup, and which then spawn the slave threads at event loop start.<br>
<br>
What will be needed also is an examination of the "static" data members in the GATE classes : some of them would be static as known in the master and slave threads, some others will be static but with a thread local scope and will need some adaptation. Helper classes in the Geant4 MT version exist to help doing an easy transformation of, for example, a singleton to a thread-local singleton.<br>
All these transformations are compatible with a sequential processing (the up-to-now processing), and a MT-compliant code can be compiled as is for a sequential processing (provided the G4RunManager has been chosen).<br>
<br>
For information, tests performed on a 61 cores Intel Xeon Phi board allowed to go up to 244 threads (maximum possible number on this platform) for a single realistic application !<br>
<br>
Hoping I just whet your appetite ! ;)<br>
<br>
Best regards,<br>
Marc<div><div><br>
<br>
<br>
<br>
On 11/26/2013 03:07 PM, Porter Ian (RBV) NHS Christie Tr wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello All,<br>
My understanding is that the next version of Geant4 (v10.0) will<br>
support multi-threading and will be released to production soon. We are<br>
keen to move over to this to avoid using multiple instances of GATE (1<br>
per CPU core) on our cluster. Can anyone tell me whether GATE will<br>
require an upgrade in order to work with Geant4 MT? If so, is there a<br>
timescale for the release of the new version? The last newsletter<br>
mentions GATE v7.0 with GPU support, which was due out by now but has<br>
not yet appeared. Is this being rewritten with a view to supporting<br>
Geant4 10.0 MT?<br>
<br>
Many Thanks,<br>
-- Ian.<br>
To download our 20:20 Vision strategy, please visit <a href="http://www.christie.nhs.uk/2020" target="_blank">http://www.christie.nhs.uk/<u></u>2020</a><br>
<br>
This e-mail and any files transmitted with it are confidential and solely for the use of the intended recipient.<br>
If you have received this e-mail in error you should not disseminate, distribute or copy it.<br>
Please notify the sender immediately and delete this e-mail from your system.<br>
<br>
______________________________<u></u>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<u></u>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<u></u>opengatecollaboration.org/<u></u>mailman/listinfo/gate-users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<u></u>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<u></u>opengatecollaboration.org/<u></u>mailman/listinfo/gate-users</a><span><font color="#888888"><br>
</font></span></div></div></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>
Centre de lutte contre le cancer Léon Bérard<br>
28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : <a href="tel:04%2078%2078%2051%2051" value="+33478785151" target="_blank">04 78 78 51 51</a> / <a href="tel:06%2074%2072%2005%2042" value="+33674720542" target="_blank">06 74 72 05 42</a><br>
<a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div>
<div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div></div>
</font></span></div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>
Tel : <a href="tel:04%2078%2078%2051%2051" value="+33478785151" target="_blank">04 78 78 51 51</a> / <a href="tel:06%2074%2072%2005%2042" value="+33674720542" target="_blank">06 74 72 05 42</a><br><a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>
_________________________________</div></div>
</div>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>
28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br><a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div>
<div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div></div>
</div>