Compute Library
 23.05
CpuInfo.cpp File Reference
#include "src/common/cpuinfo/CpuInfo.h"
#include "arm_compute/core/Error.h"
#include "arm_compute/core/Log.h"
#include "support/StringSupport.h"
#include "support/ToolchainSupport.h"
#include <sstream>
#include <algorithm>
#include <cstring>
#include <fstream>
#include <regex.h>
#include <sched.h>
#include <thread>
#include <unordered_map>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2023 Arm Limited.
 
 arm_compute::cpuinfo
 

Macros

#define ARM_COMPUTE_CPU_FEATURE_HWCAP_CPUID   (1 << 11)
 
#define ARM_COMPUTE_GET_FEATURE_REG(var, freg)
 

Functions

uint32_t num_threads_hint ()
 Some systems have both big and small cores, this fuction computes the minimum number of cores that are exactly the same on the system. More...
 

Macro Definition Documentation

◆ ARM_COMPUTE_CPU_FEATURE_HWCAP_CPUID

#define ARM_COMPUTE_CPU_FEATURE_HWCAP_CPUID   (1 << 11)

Definition at line 56 of file CpuInfo.cpp.

Referenced by CpuInfo::build().

◆ ARM_COMPUTE_GET_FEATURE_REG

#define ARM_COMPUTE_GET_FEATURE_REG (   var,
  freg 
)
Value:
__asm __volatile("MRS %0, " #freg \
: "=r"(var))

Definition at line 57 of file CpuInfo.cpp.

Referenced by CpuInfo::build().