#include "mediapipe/util/cpu_util.h"
#include <cmath>
#include <cstdint>
#ifdef __ANDROID__
#include "ndk/sources/android/cpufeatures/cpu-features.h"
#elif _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <fstream>
#include "absl/algorithm/container.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/substitute.h"
#include "mediapipe/framework/port/canonical_errors.h"
#include "mediapipe/framework/port/statusor.h"
namespace mediapipe {
namespace {
constexpr uint32_t kBufferLength = …;
absl::StatusOr<std::string> GetFilePath(int cpu) { … }
absl::StatusOr<uint64_t> GetCpuMaxFrequency(int cpu) { … }
std::set<int> InferLowerOrHigherCoreIds(bool lower) { … }
}
int NumCPUCores() { … }
std::set<int> InferLowerCoreIds() { … }
std::set<int> InferHigherCoreIds() { … }
}