AuroraRuntime/Include/Aurora/HWInfo/CpuInfo.hpp

34 lines
623 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
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"
2021-06-27 21:25:29 +00:00
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;
2021-06-27 21:25:29 +00:00
};
AUKN_SYM const CpuInfo &GetCPUInfo();
}