Enum hwlocality::topology::editor::AllowSet
source · pub enum AllowSet<'set> {
All,
LocalRestrictions,
Custom {
cpuset: Option<&'set CpuSet>,
nodeset: Option<&'set NodeSet>,
},
}
hwloc-2_3_0
only.Expand description
Requested adjustment to the allowed set of PUs and NUMA nodes
Variants§
All
Mark all objects as allowed in the topology
LocalRestrictions
Only allow objects that are available to the current process
Requires BuildFlags::ASSUME_THIS_SYSTEM
so that the set of available
resources can actually be retrieved from the operating system.
Custom
Allow a custom set of objects
You should provide at least one of cpuset
and nodeset
.
No attempt is made to keep the allowed cpusets and nodesets consistent with each other, so you can end up in situations where e.g. access to some CPU cores is theoretically allowed by the topology’s allowed cpuset, but actually prevented because their NUMA node is not part of the topology’s allowed nodeset.
Fields
cpuset: Option<&'set CpuSet>
New value of Topology::allowed_cpuset()
nodeset: Option<&'set NodeSet>
New value of Topology::allowed_nodeset()