#include <cpu.h>
Definition at line 37 of file cpu.h.
◆ CPU()
CPU::CPU |
( |
unsigned |
cores = 1 | ) |
|
|
inline |
Definition at line 39 of file cpu.h.
HW(unsigned parallelUnits)
◆ findCores()
static unsigned CPU::findCores |
( |
| ) |
|
|
inlinestatic |
Definition at line 41 of file cpu.h.
42 return std::max(std::thread::hardware_concurrency(), 1
u);
void max(Image< double > &op1, const Image< double > &op2)
◆ isMemoryLocked()
bool CPU::isMemoryLocked |
( |
const void * |
h_mem | ) |
|
|
inlineoverridevirtual |
Implements HW.
Definition at line 58 of file cpu.h.
◆ lockMemory()
void CPU::lockMemory |
( |
const void * |
h_mem, |
|
|
size_t |
bytes |
|
) |
| |
|
inlineoverridevirtual |
Implements HW.
Definition at line 50 of file cpu.h.
◆ obtainUUID()
Implements HW.
Definition at line 49 of file cpu.cpp.
59 native_cpuid(&eax, &ebx, &ecx, &edx);
61 ss << (eax & 0xF); ss <<
" ";
62 ss << ((eax >> 4) & 0
xF); ss <<
" ";
63 ss << ((eax >> 8) & 0
xF); ss <<
" ";
64 ss << ((eax >> 12) & 0x3); ss <<
" ";
65 ss << ((eax >> 16) & 0
xF); ss <<
" ";
66 ss << ((eax >> 20) & 0xFF); ss <<
" ";
◆ synch()
void CPU::synch |
( |
| ) |
const |
|
inlinevirtual |
Implements HW.
Definition at line 45 of file cpu.h.
◆ synchAll()
void CPU::synchAll |
( |
| ) |
const |
|
inlinevirtual |
Implements HW.
Definition at line 46 of file cpu.h.
◆ unlockMemory()
void CPU::unlockMemory |
( |
const void * |
h_mem | ) |
|
|
inlineoverridevirtual |
Implements HW.
Definition at line 54 of file cpu.h.
◆ updateMemoryInfo()
void CPU::updateMemoryInfo |
( |
| ) |
|
|
virtual |
Implements HW.
Definition at line 41 of file cpu.cpp.
42 size_t pages = sysconf(_SC_PHYS_PAGES);
43 size_t page_size = sysconf(_SC_PAGE_SIZE);
44 size_t total = pages * page_size;
The documentation for this class was generated from the following files: