locked
Resource requirements for exclusive tasks RRS feed

  • Question

  • Hi everyone!

    I've been caressing our HPC headnode for quite a while now, but it does not want to accept anything that has the isExclusive option set to true. The setup is this: Each node has 8 cores and I want to run a set of tasks, where each task requires 4 cores. However, I do not want two jobs to get scheduled on the same node (I want to do some timing experiments, so I don't need interference between tasks).

    What I get is this: Unhandled Exception: Microsoft.Hpc.Scheduler.Properties.SchedulerException: Task 1869.1 failed to pass validation. Error: The minimum and maximum resource requirement cannot be computed for a job with exclusive tasks.  Please provide a minimum and maximum for your job and re-submit.

    So I did exactly what the exception suggests, but I keep getting the same error. The last version I tried was this:

    Job:
    Unit Type: Node
    Minimum nodes: 1
    Maximum nodes: 18
    Exclusive: Yes

    Task:
    Unit Type: Node
    Minimum nodes: 1
    Maximum nodes: 1
    Exclusive: Yes

    Did I overlook something, or is my desired setup something that doesn't work (yet)?

    Thanks,
    Christoph

    Thursday, February 11, 2010 6:44 PM

Answers

  • Did you set the AutoCalculateMin and AutiCalculateMax job properties to false?

    ISchedulerJob job = scheduler.CreateJob();
    job.MinimumNumberOfNodes = 1;
    job.MaximumNumberOfNodes = 18;
    job.IsExclusive =
    true;
    job.AutoCalculateMax =
    false;
    job.AutoCalculateMin =
    false;
    • Marked as answer by wintersc Wednesday, February 17, 2010 3:27 PM
    Friday, February 12, 2010 9:33 PM

All replies

  • How did you create the job?

    I just did the following using the Command line interface and it worked just fine:

    job new /numnodes:1-8 /exclusive:true
    Created job, ID: 36

    job add 36 /numnodes:1-1 /exclusive:true cmd
    Task 36.1 added.

    job submit /id:36
    Job has been submitted. ID: 36.

    Friday, February 12, 2010 5:26 PM
  • I'm creating the jobs via the API. I have a C# program that creates a job and then runs over a list of files, such that for every benchmark (data) file a task is added that runs a program on the benchmark file.
    Friday, February 12, 2010 5:45 PM
  • Did you set the AutoCalculateMin and AutiCalculateMax job properties to false?

    ISchedulerJob job = scheduler.CreateJob();
    job.MinimumNumberOfNodes = 1;
    job.MaximumNumberOfNodes = 18;
    job.IsExclusive =
    true;
    job.AutoCalculateMax =
    false;
    job.AutoCalculateMin =
    false;
    • Marked as answer by wintersc Wednesday, February 17, 2010 3:27 PM
    Friday, February 12, 2010 9:33 PM
  • No I didn't - and this solves my problem. Thanks a lot!
    Wednesday, February 17, 2010 3:27 PM