<div dir="ltr">Hi,<div><br></div><div>As far as I know the following command splits the total acquisition time to N subsets (N = number of physical CPU cores) and generates N macros with various random seed generator numbers in a folder called ".Gate" as well as a "submit" file right next to your actual macro file located at let's say "/address/to/your/macro.mac" .</div><div><br></div><div>Go to GATE's "jobsplitter" address and run:</div><div>./gjs -numberofsplits N -clusterplatform CHOOSE_A_PLATFORM_BASED_ON_<wbr>CLUSTER_ARCHITECTURE /address/to/your/macro.mac</div><div><br></div><div>From now on ignore your original macro file (macro.mac) or just delete it. In order to run the generated macros, all you have to do is to execute the "submit" file. As a side note, I am also not quite sure what "<span style="font-size:12.8px">0.95 0.975 0 s" part does in your macro. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Hope that helps!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers,</span></div><div><span style="font-size:12.8px">Reza</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 11:07 PM, G Tom <span dir="ltr"><<a href="mailto:gregthom992@gmail.com" target="_blank">gregthom992@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">Hi all,<div>I just had a question about running gate on a cluster.</div><div>I used gjs to split my simulation into 40 macros. I was simulating 1e8 </div><div>particles for a radiotherapy application.</div><div>Now I thought the 40 jobs will each run 1e8/40 particles but I am seeing </div><div>instead that each is running 1e8 macros ?</div><div><br></div><div> I took a look at the simulations </div><div>statistics output and indeed each job runs 1e8 particles:</div><div><br></div><div>==============</div><div><div># NumberOfRun = 1</div><div># NumberOfEvents = 100000000</div><div># NumberOfTracks = 1754799115</div><div># NumberOfSteps = <a href="tel:(513)%20929-4665" value="+15139294665" target="_blank">5139294665</a></div><div># NumberOfGeometricalSteps = 330040574</div><div># NumberOfPhysicalSteps = <a href="tel:(480)%20925-4091" value="+14809254091" target="_blank">4809254091</a></div><div># ElapsedTime = 69568.3</div><div># ElapsedTimeWoInit = 69559.5</div><div># StartDate = Wed May 10 00:20:45 2017</div><div># EndDate = Wed May 10 19:40:14 2017</div><div># StartSimulationTime = 0</div><div># StopSimulationTime = 1</div><div># CurrentSimulationTime = 1.2</div><div># VirtualStartSimulationTime = 0.2</div><div># VirtualStopSimulationTime = 0.225</div><div># ElapsedSimulationTime = 1</div><div># PPS (Primary per sec) = 1437.62</div><div># TPS (Track per sec) = 25227.3</div><div># SPS (Step per sec) = 73883.4</div></div><div><br></div><div><br></div><div>examples of split macro files are :</div><div>..</div><div><div>/gate/application/setTotalNumb<wbr>erOfPrimaries 1e8</div><div>/gate/random/setEngineSeed 1683838443918737612</div><div>/gate/application/setTimeStart 0. s</div><div>/gate/application/addSlice 1. s</div><div>/gate/application/startDAQClus<wbr>ter 0.975 1 0 s</div><div><br></div><div>.....</div><div>/gate/application/setTotalNumb<wbr>erOfPrimaries 1e8</div><div>/gate/random/setEngineSeed 313149272728410404</div><div>/gate/application/setTimeStart 0. s</div><div>/gate/application/addSlice 1. s</div><div>/gate/application/startDAQClus<wbr>ter 0.95 0.975 0 s</div></div><div><br></div><div><br></div><div>I am not sure I fully understand how to obtain speedup by actually splitting the </div><div>number of simulated particles using gjs, </div><div><br></div><div>Thanks </div><span class="m_-1346153352858369343HOEnZb"><font color="#888888"><div><br></div><div>GT</div><div><br></div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a><br></blockquote></div><br></div></div>