Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhoover committed Aug 2, 2021
1 parent 85042a6 commit a1ff2f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions swarm.html
Original file line number Diff line number Diff line change
Expand Up @@ -747,13 +747,13 @@ <h3>Redirecting output</h3>
<p>For example, in order to create a unique directory in allocated /lscratch for each subjob, this bash code example can be used:</p>

<pre class="term">
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/hooverdm/GitHub/swarm/tests/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
export TAG=${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID} &amp;&amp; mkdir /lscratch/${SLURM_JOB_ID}/${TAG} &amp;&amp; touch /lscratch/${SLURM_JOB_ID}/${TAG}/foo.{0..4} &amp;&amp; tar czf /data/user/${TAG}.tgz /lscratch/${SLURM_JOB_ID}/${TAG}/foo.*
</pre>

<p>In this case, while the files created within each distinct<b><tt>/lscratch/${SLURM_JOB_ID}/${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}_${SWARM_PROC_ID}</tt></b> directory are identical to all
Expand Down

0 comments on commit a1ff2f6

Please sign in to comment.