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
|
|
|
|
|
2022-01-24 18:37:06 +00:00
|
|
|
#include "CpuBitId.hpp"
|
|
|
|
#include "CpuId.hpp"
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
namespace Aurora::HWInfo
|
|
|
|
{
|
|
|
|
struct CpuInfo
|
|
|
|
{
|
|
|
|
Aurora::Build::EArchitecture cpuArch;
|
|
|
|
|
2022-02-18 10:46:51 +00:00
|
|
|
AuUInt8 uSocket;
|
|
|
|
AuUInt8 uCores;
|
|
|
|
AuUInt8 uThreads;
|
2022-01-24 18:37:06 +00:00
|
|
|
|
|
|
|
AuList<AuInt64> threadTopology;
|
|
|
|
AuList<CpuBitId> serverTopology;
|
|
|
|
CpuBitId maskECores;
|
|
|
|
|
2022-02-18 10:46:51 +00:00
|
|
|
bool bMaskMTContig;
|
|
|
|
bool bMaskMTHalf;
|
2022-01-24 18:37:06 +00:00
|
|
|
|
2021-09-13 20:11:12 +00:00
|
|
|
CpuId cpuId;
|
2021-06-27 21:25:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AUKN_SYM const CpuInfo &GetCPUInfo();
|
|
|
|
}
|