AuroraRuntime/Include/Aurora/HWInfo/CpuInfo.hpp

34 lines
618 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 socket;
AuUInt8 cores;
AuUInt8 threads;
AuList<AuInt64> threadTopology;
AuList<CpuBitId> serverTopology;
CpuBitId maskECores;
bool maskMTContig;
bool maskMTHalf;
CpuId cpuId;
2021-06-27 21:25:29 +00:00
};
AUKN_SYM const CpuInfo &GetCPUInfo();
}