mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Dates corrected in copyright headers to reflect original publication date (2018 for OpenCL, 2020 for Level Zero). Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
23 lines
564 B
C++
23 lines
564 B
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "level_zero/tools/source/sysman/linux/pmt/pmt.h"
|
|
|
|
namespace L0 {
|
|
|
|
const std::map<std::string, uint64_t> deviceKeyOffsetMap = {
|
|
{"PACKAGE_ENERGY", 0x400},
|
|
{"COMPUTE_TEMPERATURES", 0x68},
|
|
{"SOC_TEMPERATURES", 0x60},
|
|
{"CORE_TEMPERATURES", 0x6c}};
|
|
|
|
ze_result_t PlatformMonitoringTech::getKeyOffsetMap(std::string guid, std::map<std::string, uint64_t> &keyOffsetMap) {
|
|
keyOffsetMap = deviceKeyOffsetMap;
|
|
return ZE_RESULT_SUCCESS;
|
|
}
|
|
|
|
} // namespace L0
|