<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hi,</div>
<div> </div>
<div>I am trying to launch multiple MPI runs( parallel task) within a single job allocation, but I keep on getting </div>
<div>error about task exiting</div>
<div>srun: error: cu01n2: tasks 0-7: Exited with exit code 2</div>
<div>srun: Terminating job step 1546136.4</div>
<div> </div>
<div>Here is my swift script. I am not sure what is going wrong, any help is appreciated.</div>
<div> </div>
<div>Thanks,</div>
<div>-Khushbu</div>
<div>---------------------------------</div>
<div> </div>
<div>type file;</div>
<div> </div>
<div>file stompIn <"stomp.in">;</div>
<div>file stompOut <"stomp.out">;</div>
<div>file sphArr[] <fixed_array_mapper;files="sph.in.1, sph.in.2">;</div>
<div>int n = 2;</div>
<div> </div>
<div>(file stOut) runStomp (file stIn) {</div>
<div>    app {</div>
<div>         stomp @stIn @stOut;</div>
<div>    }</div>
<div>}</div>
<div> </div>
<div>(file s[]) pg (file stOut, int num) {</div>
<div>    app {</div>
<div>         pg @stOut "sph.in" num;</div>
<div>    }</div>
<div>}</div>
<div> </div>
<div>(file output) runSph (file input, int num) {</div>
<div>    app{</div>
<div>        mpi @input @output num;</div>
<div>    }</div>
<div>}</div>
<div> </div>
<div>stompOut = runStomp(stompIn);</div>
<div> </div>
<div>sphArr = pg(stompOut, n);</div>
<div> </div>
<div>int list[] = [1,2];</div>
<div> </div>
<div>foreach i in list</div>
<div>{</div>
<div>    file sphOut <single_file_mapper;file=@strcat("sph.out.",i)>;</div>
<div>    sphOut = runSph(sphArr[i-1], i-1);</div>
<div>}</div>
<div> </div>
<div> </div>
</font>
</body>
</html>