mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: fix typos
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5c6ae48d17
commit
195bf66a49
@@ -164,7 +164,7 @@ ze_result_t PlatformMonitoringTech::init() {
|
||||
|
||||
std::unique_ptr<PlatformMonitoringTech> PlatformMonitoringTech::create(SysmanProductHelper *pSysmanProductHelper) {
|
||||
std::wstring deviceInterface;
|
||||
if (enumeratePMTInterface(&PmtSysman::GuidIntefacePmtTelemetry, deviceInterface) == ZE_RESULT_SUCCESS) {
|
||||
if (enumeratePMTInterface(&PmtSysman::GuidInterfacePmtTelemetry, deviceInterface) == ZE_RESULT_SUCCESS) {
|
||||
std::unique_ptr<PlatformMonitoringTech> pPmt;
|
||||
pPmt = std::make_unique<PlatformMonitoringTech>(deviceInterface, pSysmanProductHelper);
|
||||
UNRECOVERABLE_IF(nullptr == pPmt);
|
||||
@@ -212,7 +212,7 @@ ze_result_t PlatformMonitoringTech::enumeratePMTInterface(const GUID *guid, std:
|
||||
|
||||
if (status != CR_SUCCESS) {
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr,
|
||||
"Could not find and store the PMT device inteface path.\n");
|
||||
"Could not find and store the PMT device interface path.\n");
|
||||
DEBUG_BREAK_IF(true);
|
||||
return ZE_RESULT_ERROR_UNKNOWN;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Intel Corporation
|
||||
* Copyright (C) 2024-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -20,7 +20,7 @@ constexpr uint32_t MethodBuffered = 0;
|
||||
constexpr uint32_t FileReadAccess = 0x0001;
|
||||
|
||||
// Intel PMT Telemetry Interface GUID {3dfb2563-5c44-4c59-8d80-baea7d06e6b8}
|
||||
constexpr GUID GuidIntefacePmtTelemetry = {0x3dfb2563, 0x5c44, 0x4c59, {0x8d, 0x80, 0xba, 0xea, 0x7d, 0x06, 0xe6, 0xb8}};
|
||||
constexpr GUID GuidInterfacePmtTelemetry = {0x3dfb2563, 0x5c44, 0x4c59, {0x8d, 0x80, 0xba, 0xea, 0x7d, 0x06, 0xe6, 0xb8}};
|
||||
|
||||
inline constexpr uint32_t getCtlCode(uint32_t code) {
|
||||
return CTL_CODE(FileDeviceIntelPmt, code, MethodBuffered, FileReadAccess);
|
||||
@@ -43,7 +43,7 @@ struct PmtTelemetryEntry {
|
||||
struct PmtTelemetryDiscovery {
|
||||
unsigned long version; // Structure version
|
||||
unsigned long count; // Count of telemetry interfaces
|
||||
PmtTelemetryEntry telemetry[AnySizeArray]; // Array to hold enries for each inteface.
|
||||
PmtTelemetryEntry telemetry[AnySizeArray]; // Array to hold enries for each interface.
|
||||
};
|
||||
|
||||
struct PmtTelemetryRead {
|
||||
|
||||
@@ -1630,7 +1630,7 @@ ze_result_t SysmanProductHelperHw<gfxProduct>::getPowerEnergyCounter(zes_power_e
|
||||
double result = static_cast<double>(integerPart + decimalPart);
|
||||
pEnergy->energy = static_cast<uint64_t>((result * convertJouleToMicroJoule));
|
||||
|
||||
// timestamp calcuation
|
||||
// timestamp calculation
|
||||
uint64_t timestamp64 = 0;
|
||||
uint32_t frequency = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user