Interface of a CPU core affinity management service. More...
#include <arcane/utils/IProcessorAffinityService.h>
Public Member Functions | |
| virtual void | build ()=0 |
| virtual void | printInfos ()=0 |
| Displays complete topology information via info(). | |
| virtual String | cpuSetString ()=0 |
| Returns the cpuset for the current thread. | |
| virtual void | bindThread (Int32 cpu)=0 |
| Constrains the current thread to stay on the core with index cpu. | |
| virtual Int32 | numberOfCore ()=0 |
| Number of CPU cores (-1 if unknown). | |
| virtual Int32 | numberOfSocket ()=0 |
| Number of sockets (-1 if unknown). | |
| virtual Int32 | numberOfProcessingUnit ()=0 |
| Number of logical cores (-1 if unknown). | |
Interface of a CPU core affinity management service.
Definition at line 32 of file IProcessorAffinityService.h.
|
inlinevirtual |
Definition at line 36 of file IProcessorAffinityService.h.
|
pure virtual |
Constrains the current thread to stay on the core with index cpu.
Implemented in Arcane::HWLocProcessorAffinityService.
|
pure virtual |
Returns the cpuset for the current thread.
The returned string is in a format compatible with that of taskset. For example, we can have values such as 'ff', '1, or 'ffff1234,ff'.
Implemented in Arcane::HWLocProcessorAffinityService.
Referenced by Arcane::SubDomain::_printCPUAffinity().
|
pure virtual |
Number of CPU cores (-1 if unknown).
Implemented in Arcane::HWLocProcessorAffinityService.
|
pure virtual |
Number of logical cores (-1 if unknown).
Implemented in Arcane::HWLocProcessorAffinityService.
|
pure virtual |
Number of sockets (-1 if unknown).
Implemented in Arcane::HWLocProcessorAffinityService.
|
pure virtual |
Displays complete topology information via info().
Implemented in Arcane::HWLocProcessorAffinityService.
Referenced by Arcane::Application::initialize().