26 #ifndef LIBRARIES_DATA_CPU_H_ 27 #define LIBRARIES_DATA_CPU_H_ 39 CPU(
unsigned cores=1) :
HW(cores) {}
42 return std::max(std::thread::hardware_concurrency(), 1
u);
50 void lockMemory(
const void *h_mem,
size_t bytes)
override {
67 void native_cpuid(
unsigned int *eax,
unsigned int *ebx,
68 unsigned int *ecx,
unsigned int *edx);
static unsigned findCores()
bool isMemoryLocked(const void *h_mem) override
void max(Image< double > &op1, const Image< double > &op2)
void unlockMemory(const void *h_mem) override
void lockMemory(const void *h_mem, size_t bytes) override