<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi Neville,<br>
<br>
</div>
I ran into a similar problem and never managed to actually use the GJS on a cluster organized by slurm.<br>
</div>
Here's what I ended up doing instead:<br>
<br>
</div>
Step 1)<br>
</div>
Split up the simulation into N parts that each run for 1/N times the total simulated time (I do this by just creating N macro files that differ only in the start_time and stop_time values and the output file names).<br>
</div>
<br>
</div>
Step 2)<br>
</div>
Create a slurm multi-prog config file. The syntax of this file is simple:<br>
</div>
<processor id> <command to be executed><br>
</div>
In my case it looks something like this:<br>
0 Gate run0.mac<br>
1 Gate run1.mac<br>
2 Gate run2.mac<br>
3 Gate run3.mac<br>
[...]<br>
</div>
N-1 Gate run<N-1>.mac<br>
<br>
</div>
Step 3)<br>
</div>
Create the usual sbatch script with all the slurm parameters etc. and add the line<br>
</div>
srun --multi-prog <your_config_file_name><br>
</div>
and submit it with the sbatch command. This will then read the config file and start the processes as defined in there.<br>
<br>
<br>
</div>
Of course you can automate this whole process, the exact implementation obviously depends on how you've set up your simulation.<br>
</div>
Note that you will of course get N output files and you might want to merge them afterwards. For root files you can just use the hadd utility, for ASCII output I simply concatenate the files. I have not tried any other outputs.<br>
</div>
Another issue might be that the eventID starts from 0 for every process. Since that has been irrelevant for me I have not thought about a way to change this. I'd be interested to hear if anyone came up with a fix for this, though.<br>
<br>
</div>
Hope this approach will work for you!<br>
</div>
Best,<br>
</div>
Kevin<br>
<br>
<br>
<font face="Courier New">On Tue Nov 10 21:20:40 CET 2015 Neville Eclov wrote:</font><i><br>
</i><br>
<pre>Dear Gate users:
I am hoping to use the GateJobSplitter (GJS) on our computing cluster, but
the cluster uses slurm, which isn't one of the 4 clusterplatform options
listed by the GJS manual. Has anyone made a version that works with slurm?
If so, would you be willing to send it my way? Or is there some other way
to do this for slurm?
Thanks in advance for your time/effort!
Best,
Neville Eclov</pre>
<i><br>
</i></div>
</body>
</html>