[slurm-users] Lua Job Submit - Setting Features/Constraints

Kevin Manalo kmanalo at jhu.edu
Wed Dec 19 07:27:23 MST 2018


Is it safe to assume the value is nil if not set?

 if (job_desc[‘partition’] == "parallel" and job_desc[‘features’] == nil) then
    job_desc['features'] = "[haswell|broadwell|skylake]"
  end

-Kevin

From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Douglas Jacobsen <dmjacobsen at lbl.gov>
Reply-To: Slurm User Community List <slurm-users at lists.schedmd.com>
Date: Wednesday, December 19, 2018 at 9:07 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] Lua Job Submit - Setting Features/Constraints

Hello,

We do this, it works like most of the other string-based fields, e.g.,

function job_submit(job_request, partinfo, submit_uid) {
     job_request['features'] = 'special'
     return slurm.SUCCESS
}

Is there something detailed you are looking for?

-Doug
----
Doug Jacobsen, Ph.D.
NERSC Computer Systems Engineer
Acting Group Lead, Computational Systems Group
National Energy Research Scientific Computing Center<http://www.nersc.gov>
dmjacobsen at lbl.gov<mailto:dmjacobsen at lbl.gov>

------------- __o
---------- _ '\<,_
----------(_)/  (_)__________________________



On Wed, Dec 19, 2018 at 5:49 AM Kevin Manalo <kmanalo at jhu.edu<mailto:kmanalo at jhu.edu>> wrote:
All,

Does anyone have an example of setting features (if not set) in the Lua job submission scripts?

job_desc.features

There was a discussion here, but it appears to be for the case where it is checked and rejected
https://groups.google.com/d/topic/slurm-users/C-oYERITK9c/discussion

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


More information about the slurm-users mailing list