SLURM Devs,

We're starting to realized the niceties of SLURM Job Arrays in my group, which got me to thinking. I was wondering if there was every any thought as to perhaps allowing non-numerical array indexes a la:

  #SBATCH --array=a,b,c,d

or

  #SBATCH --array=temperature,uwind,vwind

where you could use the very nice properties of SLURM arrays but with a more generic set of substitutions to pass along to the script being run.

Obviously, a user wouldn't be able to do fancy things like 1-10 (though I guess a-z is valid in ASCII-land) or 1-10:4 or 1-30%4, only comma-delimited.

And one can, with shell script arrays, emulate an effect thing now (reference an array with the SLURM_ARRAY_TASK_ID: 1=temp, 2=uwind...) with a little work.

Of course, I realize this is more problematic than just parsing a list with commas since you could have job-ids that are now alphanumeric (scontrol hold 123409_temperature), you have to start thinking about Unicode, etc., but I just wondered if it was ever in any thoughts.

Thanks,
Matt

--
Matt Thompson, SSAI, Sr Scientific Programmer/Analyst
NASA GSFC,    Global Modeling and Assimilation Office
Code 610.1,  8800 Greenbelt Rd,  Greenbelt,  MD 20771
Phone: 301-614-6712                 Fax: 301-614-6246
http://science.gsfc.nasa.gov/sed/bio/matthew.thompson
  • [slurm-dev] Non-numer... Thompson, Matt[SCIENCE SYSTEMS AND APPLICATIONS INC]

Reply via email to