<div dir="ltr">Hi,<div><br></div><div>I'm running Slurm 19.05.5.</div><div><br></div><div>I've tried to write a job submission script for a heterogeneous job following the example at <a href="https://slurm.schedmd.com/heterogeneous_jobs.html">https://slurm.schedmd.com/heterogeneous_jobs.html</a></div><div><br></div><div>But it failed with the following error message:</div><div><br></div><div>$ sbatch new.bash<br>sbatch: error: Invalid directive found in batch script: hetjob<br></div><div><br></div><div>Below is the new.bash job script:</div><div>$ cat new.bash<br>#!/bin/bash<br>#SBATCH --cpus-per-task=4 --mem-per-cpu=16g --ntasks=1<br>#SBATCH hetjob<br>#SBATCH --cpus-per-task=2 --mem-per-cpu=1g  --ntasks=8<br>srun exec_myapp.bash<br></div><div><br></div><div>Has anyone tried this?</div><div><br></div><div>I've tried the following command at the command line and it worked fine. </div><div>$ sbatch --cpus-per-task=4 --mem-per-cpu=16g --ntasks=1 : --cpus-per-task=2 --mem-per-cpu=1g  --ntasks=8 exec_myapp.bash<br></div><div><br></div><div>Thanks,</div><div>Chansup</div><div><br></div></div>