<div dir="ltr">Thanks Reza,<div><br></div><div>I undertand that line you mentioned with gjs. That is what I used to split my main.mac into N=40 where N is the number of cores. However, in each of the </div><div><br></div><div>main1.mac</div><div>main2.mac</div><div>....</div><div>main40.mac</div><div><br></div><div>I find the lines</div><div><br></div><div>in main1.mac:</div><div>...</div><div><div>/gate/application/setTotalNumberOfPrimaries 1e8</div><div>/gate/random/setEngineSeed 2267427155918198868</div><div>/gate/application/setTimeStart 0. s</div><div>/gate/application/addSlice 1. s</div><div>/gate/application/startDAQCluster 0 0.025 0 s</div></div><div><br></div><div>in main2.mac:</div><div>...</div><div><div>/gate/application/setTotalNumberOfPrimaries 1e8</div><div>/gate/random/setEngineSeed 1260235483062616104</div><div>/gate/application/setTimeStart 0. s</div><div>/gate/application/addSlice 1. s</div><div>/gate/application/startDAQCluster 0.025 0.05 0 s</div></div><div><br></div><div>...</div><div><br></div><div>and in main40.mac</div><div><div><br></div><div>/gate/application/setTotalNumberOfPrimaries 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/startDAQCluster 0.975 1 0 s</div></div><div><br></div><div><br></div><div>My question is this: is each one simulating 1e8 particles ? What does the line /gate/application/startDAQCluster 0.975 1 0 s mean ?</div><div><br></div><div>If possible, can someone provide example of gjs with the two methods of splitting : event based and time based splitting as mentioned in the talk </div><div>of D. Sarrut: <a href="http://www.opengatecollaboration.org/sites/default/files/Talk6.pdf">http://www.opengatecollaboration.org/sites/default/files/Talk6.pdf</a>.</div><div><br></div><div>Also I want a moving phantom that moves at a certain speed: how should I account for that in the splitting of my macros ?</div><div><br></div><div>Thanks</div><div><br></div><div>GT</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 1:47 PM, M.R Teimoori <span dir="ltr"><<a href="mailto:reza.teimoori.s@gmail.com" target="_blank">reza.teimoori.s@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,<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_CLU<wbr>STER_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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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_5752131989744551262m_-1346153352858369343HOEnZb"><font color="#888888"><div><br></div><div>GT</div><div><br></div><div><br></div></font></span></div>
<br></div></div>______________________________<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/gate<wbr>-users</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div>