The CPU class is a definition of an interface to the CPU device.
More...
#include <knp/devices/cpu.h>
|
| CPU (const CPU &)=delete |
| Avoid copy of a CPU device.
|
|
CPU & | operator= (const CPU &)=delete |
| Avoid copy assignment of a CPU device.
|
|
| CPU (CPU &&) |
| CPU device move constructor.
|
|
CPU & | operator= (CPU &&) noexcept |
| CPU device move operator.
|
|
| ~CPU () override |
| CPU device destructor.
|
|
knp::core::DeviceType | get_type () const override |
| Get device type.
|
|
const std::string & | get_name () const override |
| Get device name.
|
|
uint32_t | get_socket_number () const |
| Get CPU device socket number.
|
|
float | get_power () const override |
| Get power consumption details for the device.
|
|
virtual | ~Device ()=default |
| Device destructor.
|
|
const UID & | get_uid () const |
| Get device UID.
|
|
auto & | get_tags () |
| Get tags used by the device.
|
|
|
KNP_DECLSPEC std::vector< CPU > | list_processors () |
| List all processors on which backend can be initialized.
|
|
The CPU class is a definition of an interface to the CPU device.
Definition at line 51 of file cpu.h.
◆ get_name()
const std::string & knp::devices::cpu::CPU::get_name |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Get device name.
- Returns
- device name in the arbitrary format.
Implements knp::core::Device.
◆ get_power()
float knp::devices::cpu::CPU::get_power |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Get power consumption details for the device.
- Returns
- amount of consumed power.
Implements knp::core::Device.
◆ get_socket_number()
uint32_t knp::devices::cpu::CPU::get_socket_number |
( |
| ) |
const |
|
nodiscard |
Get CPU device socket number.
- Returns
- socket number.
◆ get_type()
◆ operator=()
CPU & knp::devices::cpu::CPU::operator= |
( |
CPU && | | ) |
|
|
noexcept |
CPU device move operator.
- Returns
- reference to CPU instance.
◆ list_processors
KNP_DECLSPEC std::vector< CPU > list_processors |
( |
| ) |
|
|
friend |
List all processors on which backend can be initialized.
- Returns
- vector of CPUs.
The documentation for this class was generated from the following file:
- devices-library/include/knp/devices/cpu.h