<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><style type="text/css" scoped="">
        <!--
                @page { margin: 0.79in }
                p { margin-bottom: 0.1in; line-height: 120% }
                a:link { so-language: zxx }
        -->
        </style><div><style><!--

@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.gmail-m-5363044377995467041gmail-m7212328658302863106gmail-m-3840770012175089402gmail-tlid-translation
        {mso-style-name:gmail-m_-5363044377995467041gmail-m_7212328658302863106gmail-m_-3840770012175089402gmail-tlid-translation;}
span.gmail-m-5363044377995467041gmail-m7212328658302863106gmail-m-3840770012175089402gmail-
        {mso-style-name:gmail-m_-5363044377995467041gmail-m_7212328658302863106gmail-m_-3840770012175089402gmail-;}
span.gmail-tlid-translation
        {mso-style-name:gmail-tlid-translation;}
span.gmail-
        {mso-style-name:gmail-;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></div><div>Hi Meriem,<br></div><div><br data-mce-bogus="1"></div><div>I'm using a HPC platform with SLURM, which is not a problem for GATE submission jobs since it is just an utility for batch processing. A job (i.e. one of the files in which you split your main macro file) is the execution unit for SLURM. To ensure the proper scheduling of jobs, you have to fit together nodes and cores that can be used at the same time in a group (number of total jobs). </div><div><br data-mce-bogus="1"></div><div>That said, you may split your macro as usual with the gjs splitter tool (***Note: before it, you must export GC_DOT_GATE_DIR= "where_you_want_to_store_the_data"). Then, you can launch your jobs using "sbatch" command as follows:</div><div><br data-mce-bogus="1"></div><div>> sbatch "job_script"<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>where your "job_script" can be something like this (e.g. 480 jobs):<br data-mce-bogus="1"></div><div>-----------------------------------------------------------------<br data-mce-bogus="1"></div><div>#!/bin/bash<br>#SBATCH --ntasks 480<br>#SBATCH --qos=prace<br>#SBATCH --time=24:00:00<br>#SBATCH --job-name=O<br>#SBATCH --output=c_%j.out<br>#SBATCH --error=c_%j.err<br><br>srun ./Beam.sh<br>-----------------------------------------------------------------</div><div><br>in turn,  "Beam.sh" file is:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>------------------------------------------------------------------<br data-mce-bogus="1"></div><div>#!/bin/bash<br>Gate .Gate/main/main$(($SLURM_PROCID+1)).mac<br>-------------------------------------------------------------------<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>which executes Gate for all your jobs that are into  .Gate/  folder  (pointed at ***)<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I hope it works! <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Best,<br data-mce-bogus="1"></div><div>Consuelo<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Grevillot Loic" <loic.grevillot@medaustron.at><br><b>À: </b>"meryem fiak" <fiakmeryem.13@gmail.com><br><b>Cc: </b>"gate-users" <gate-users@lists.opengatecollaboration.org><br><b>Envoyé: </b>Vendredi 22 Mars 2019 10:56:41<br><b>Objet: </b>Re: [Gate-users] GATE ON CLUSTER<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">






<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">Dear Meriem,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">please always use the GATE mailing-list. For cluster business, I am sure you will find much more experienced users than
 I am…</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">Best,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">Loïc</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> meryem fiak [mailto:fiakmeryem.13@gmail.com]
<br>
<b>Sent:</b> Freitag, 22. März 2019 00:02<br>
<b>To:</b> Grevillot Loic <loic.grevillot@medaustron.at><br>
<b>Subject:</b> GATE ON CLUSTER</span></p>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Hello,</p>
</div>
<div>
<p class="MsoNormal">I'm a phd student in medical physics and I have a question regarding "Running GATE on a cluster".</p>
</div>
<div>
<p class="MsoNormal">I'm working on MC simulation of linacs in radiotherapy via GATE/GEANT4 platforme and i'm hoping to use the gjs Gate jobsplitter on a cluster (parallel mode), but the cluster uses
<b>Slurm</b> which <span class="gmail-m-5363044377995467041gmail-m7212328658302863106gmail-m-3840770012175089402gmail-">
does not belong to the 4 clusterplatform listed by GATE ( HT Condor, openPBS, openmosix and Xgrid).</span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I would like to know how can I split my  Gate macros into several jobs using slurm (job scheduler).</p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-">I already posted the problem in Gate-users list forum but I haven't received any response.</span></p>
</div>
<div>
<p class="MsoNormal">Thank you so much for your help.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif" lang="EN-GB">Kind regards.</span></b></p>
<div>
<div id="gmail-:2y3">
<p class="MsoNormal"><img id="_x0000_i1025" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></p>
</div>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- </p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt">Ms</span></b><span style="font-size:9.5pt">.<b><i><span style="color:#38761D">FIAK Meriem</span></i></b></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">-------------------------------------------------------------------</span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt">Job Title: <i><span style="color:#38761D">Phd Student</span></i><span style="color:#38761D"> </span></span></b><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">--------------------------------------------------------------------</span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Hassan II University of Casablanca</span></b><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Faculty of sciences Ben M'sik</span></b><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Department of physics</span></b><span style="font-size:9.5pt;color:#0B5394"> </span><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#6FA8DC">Laboratory of the Physics of Condensed Matter
<i>(LPMC)</i></span><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#6FA8DC">Team of Subatomic and Applications Research
<i>(ERSA)</i></span><span style="font-size:9.5pt"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">---------------------------------------------------------------------</span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:black">E-mail: </span>
</b><b><u><span style="font-size:9.5pt;color:#38761D;background:#F3F3F3"><a href="mailto:fiakmeryem.13@gmail.com" target="_blank">fiakmeryem.13@gmail.com</a></span></u></b><span style="font-size:9.5pt"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="WordSection1">
<p class="MsoNormal"><small><span style=""></span><b><span style="font-family: "Verdana","sans-serif"; color: rgb(17, 35, 89);" lang="EN-GB">Disclaimer:</span></b><br>
<span style="font-family: "Verdana","sans-serif"; color: rgb(17, 35, 89);" lang="EN-GB">Please notice our E-Mail Disclaimer <a href="http://www.medaustron.at/email-disclaimer/" target="_blank"><span style="color: rgb(17, 35, 89);">http://www.medaustron.at/email-disclaimer/</span></a></span></small><span style=""></span> </p>
</div>
<br>


<br>_______________________________________________<br>Gate-users mailing list<br>Gate-users@lists.opengatecollaboration.org<br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br></div></div></body></html>