<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi folks,</p>
<p>Not sure i should post this here but thought you may have seen
this problem before.</p>
<p><br>
</p>
<p>I´m running slurm(16.05) together with cfncluster from aws and
using autoscaling. It seems to work except for dependencies.</p>
<p><br>
</p>
<p>I always get an error:</p>
<p><u>sbatch: error: Batch job submission falied: Job dependency
problem</u></p>
<p><br>
</p>
<p>I tested with a simple script:</p>
<p><br>
</p>
<pre class="term" style="white-space: pre-wrap; word-wrap: break-word; font-size: 12px; font-family: monospace; margin-left: 1em; margin-right: 1em; padding: 5px; border: 1px solid rgb(192, 192, 192); background-color: rgb(219, 223, 219); color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">#!/bin/sh
id=`sbatch --job-name=factor9-1 --ntasks=1 --ntasks-per-core=1 --output=out.slurmout jobscript`
echo "ntasks 1 jobid $id"
for n in 2 4 8 16 32 64 128; do
id=`sbatch --depend=afterany:$id --job-name=factor9-$n --ntasks=$n --ntasks-per-core=1 --output=$n.slurmout jobscript`;
echo "ntasks $n jobid $id"
done</pre>
<p><br>
</p>
<p>jobscript file:</p>
<p>#! /bin/bash<br>
</p>
<p>echo $hostname</p>
<p><br>
</p>
<p>Looks like clustercfn is not aware of job dependencies. Or is it
a slurm problem ?</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p><br>
</p>
<p>David<br>
</p>
</body>
</html>