[slurm-users] Nodelist syntax and semantics

191 views
Skip to first unread message

Jackson, Gary L. via slurm-users

unread,
Sep 5, 2024, 3:27:46 PM9/5/24
to slurm...@lists.schedmd.com

Is there a description of the “nodelist” syntax and semantics somewhere other than the source code? By “nodelist” I mean expressions like “name[000,099-100]” and how this one, for example, expands to “name000, name099, name100”.

 

-- 

Gary

Paul Edmon via slurm-users

unread,
Sep 5, 2024, 3:33:15 PM9/5/24
to slurm...@lists.schedmd.com

I think this might be the closest to one: https://slurm.schedmd.com/slurm.conf.html#SECTION_NODE-CONFIGURATION  From the third paragraph:

"Multiple node names may be comma separated (e.g. "alpha,beta,gamma") and/or a simple node range expression may optionally be used to specify numeric ranges of nodes to avoid building a configuration file with large numbers of entries. The node range expression can contain one pair of square brackets with a sequence of comma-separated numbers and/or ranges of numbers separated by a "-" (e.g. "linux[0-64,128]", or "lx[15,18,32-33]"). Note that the numeric ranges can include one or more leading zeros to indicate the numeric portion has a fixed number of digits (e.g. "linux[0000-1023]"). Multiple numeric ranges can be included in the expression (e.g. "rack[0-63]_blade[0-41]"). If one or more numeric expressions are included, one of them must be at the end of the name (e.g. "unit[0-31]rack" is invalid), but arbitrary names can always be used in a comma-separated list."

-Paul Edmon-

Reply all
Reply to author
Forward
0 new messages