[slurm-users] heterogeneous launch inside a non-heterogeneous job

Christopher W. Harrop christopher.w.harrop at noaa.gov
Mon Oct 15 10:30:55 MDT 2018


Hi,

What if I don’t have a version of SLURM that supports heterogeneous jobs but I want to launch a parallel code using heterogeneous set of resources inside of a homogeneous job that was submitted with sbatch?  How do I do that?

For example, the following does not work:

#!/bin/sh --login                                                                                                                                                                                                                                 

#SBATCH --account myaccount                                                                                                                                                                                                                       
#SBATCH -p batch                                                                                                                                                                                                                                  
#SBATCH -t 01:00                                                                                                                                                                                                                                
#SBATCH -o test.out                                                                                                                                                                
#SBATCH --mem=512                                                                                                                                                                                                                                 
#SBATCH --job-name test                                                                                                                                                                                                                          
#SBATCH --exclusive                                                                                                                                                                                                                               
#SBATCH --nodes=3-3 --tasks-per-node=4                                                                                                                                                                                                            

srun --nodes=1-1 --tasks-per-node=1 : --nodes=2-2 --tasks-per-node=4 ./hello.exe



Chris
-----------------------------------------------------------------------------------------------------------
Christopher W. Harrop                               email: christopher.w.harrop at noaa.gov <mailto:christopher.w.harrop at noaa.gov>
Global Systems Division                                                      voice: (303) 497-6808 <tel:%28303%29%20497-6808>
NOAA Earth System Research Laboratory                             fax: (303) 497-7259 <tel:%28303%29%20497-7259>
325 Broadway R/GSD6
Boulder, CO 80303






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181015/307b9f79/attachment-0001.html>


More information about the slurm-users mailing list