AffinityMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the processor affinity settings that control the association between tasks and cores.
public enum AffinityMode
type AffinityMode =
Public Enum AffinityMode
- Inheritance
-
AffinityMode
Fields
| Name | Value | Description |
|---|---|---|
| AllJobs | 0 | Directs the HPC Node Manager Service to set the processor affinity for any task to which an entire node is not allocated. This setting is the best choice for jobs such as parameter sweeps and Service-Oriented Architecture (SOA) jobs, for which multiple instances of the application can run per node and for which you want these instances to be isolated from each other. This setting corresponds to the affinity behavior in Windows HPC Server 2008. |
| NonExclusiveJobs | 1 | Directs the HPC Node Manager Service not to set affinity on jobs that are marked as exclusive. This setting is the ideal choice for jobs that contain only one task, because this setting enables that task to take advantage of all cores on the nodes to which the task is assigned. This setting provides new affinity-setting behavior for Windows HPC Server 2008 SP1 and is the default setting for Windows HPC Server 2008 SP1, Windows HPC Server 2008 SP2, and Windows HPC Server 2008 R2, because this setting provides the generally preferred behavior for MPI tasks, which are most likely to be sensitive to affinitization. When you use this setting, MPI tasks in exclusive jobs can take advantage of the –affinity option of the mpiexec command even if the task is not allocated an entire node. |
| NoJobs | 2 | Directs the HPC Node Manager Service never to set processor affinity on any task. This setting is excellent choice if you are running MPI tasks and want to be sure that you can use the –affinity option for the mpiexec command even when jobs share nodes. This setting is also useful for applications that set their own processor affinity. This setting corresponds to the affinity behavior in Windows Compute Cluster Server 2003. |