Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves or sets the maximum number of nodes that the scheduler may allocate for the task.
This property is read/write.
Syntax
HRESULT put_MaximumNumberOfNodes(
  [in]  long maxNodes
);
HRESULT get_MaximumNumberOfNodes(
  [out] long *pMaxNodes
);
Property value
The maximum number of nodes. The default is 1.
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 ErrorMessage task property.
Remarks
Set this property if the UnitType job property is JobUnitType_Node.
This property tells the scheduler that the task requires at most n nodes to run (the scheduler will not allocate more than this number of nodes for the task).
The value cannot:
- Exceed the value of the MaximumNumberOfNodes job property.
- Be less than the value of the MinimumNumberOfNodes task property.
Requirements
| Product | HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities | 
| Type library | Microsoft.Hpc.Scheduler.tlb | 
See also
ISchedulerTask.MaximumNumberOfCores