34 lines
623 B
C++
34 lines
623 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: CpuInfo.hpp
|
|
Date: 2021-6-10
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include "CpuBitId.hpp"
|
|
#include "CpuId.hpp"
|
|
|
|
namespace Aurora::HWInfo
|
|
{
|
|
struct CpuInfo
|
|
{
|
|
Aurora::Build::EArchitecture cpuArch;
|
|
|
|
AuUInt8 uSocket;
|
|
AuUInt8 uCores;
|
|
AuUInt8 uThreads;
|
|
|
|
AuList<AuInt64> threadTopology;
|
|
AuList<CpuBitId> serverTopology;
|
|
CpuBitId maskECores;
|
|
|
|
bool bMaskMTContig;
|
|
bool bMaskMTHalf;
|
|
|
|
CpuId cpuId;
|
|
};
|
|
|
|
AUKN_SYM const CpuInfo &GetCPUInfo();
|
|
} |