Hi,

I'm running Slurm 19.05.5.

I've tried to write a job submission script for a heterogeneous job
following the example at https://slurm.schedmd.com/heterogeneous_jobs.html

But it failed with the following error message:

$ sbatch new.bash
sbatch: error: Invalid directive found in batch script: hetjob

Below is the new.bash job script:
$ cat new.bash
#!/bin/bash
#SBATCH --cpus-per-task=4 --mem-per-cpu=16g --ntasks=1
#SBATCH hetjob
#SBATCH --cpus-per-task=2 --mem-per-cpu=1g  --ntasks=8
srun exec_myapp.bash

Has anyone tried this?

I've tried the following command at the command line and it worked fine.
$ sbatch --cpus-per-task=4 --mem-per-cpu=16g --ntasks=1 : --cpus-per-task=2
--mem-per-cpu=1g  --ntasks=8 exec_myapp.bash

Thanks,
Chansup

Reply via email to