ISchedulerJob::MaxCoresPerNode property

Retrieves or sets the maximum number of cores that a node can have for the job to run on it.

This property is read/write.

Syntax

HRESULT put_MaxCoresPerNode(
  [in]  long maxCores
);

HRESULT get_MaxCoresPerNode(
  [out] long *pMaxCores
);

Property value

The maximum number of cores. The default value is INT_MAX.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ISchedulerJob::ErrorMessage property.

Remarks

This property is not used in the scheduling process unless set by the user.

If you set this property to 2, the scheduler will not schedule the job on nodes that have more than two cores.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob

ISchedulerJob.MaxMemory

ISchedulerJob.MaximumNumberOfCores

ISchedulerJob.MinCoresPerNode