summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files/patch-no-perf
diff options
context:
space:
mode:
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-no-perf')
-rw-r--r--lang/intel-compute-runtime/files/patch-no-perf11
1 files changed, 6 insertions, 5 deletions
diff --git a/lang/intel-compute-runtime/files/patch-no-perf b/lang/intel-compute-runtime/files/patch-no-perf
index b41ffa6c4826..04729eaa066a 100644
--- a/lang/intel-compute-runtime/files/patch-no-perf
+++ b/lang/intel-compute-runtime/files/patch-no-perf
@@ -32,19 +32,20 @@ level_zero/tools/source/sysman/linux/pmu/pmu_imp.h:12:10: fatal error: 'linux/pe
}
LinuxEngineImp::LinuxEngineImp(OsSysman *pOsSysman, zes_engine_group_t type, uint32_t engineInstance) : engineGroup(type), engineInstance(engineInstance) {
---- level_zero/tools/source/sysman/linux/os_sysman_imp.cpp.orig 2021-10-01 16:31:56 UTC
+--- level_zero/tools/source/sysman/linux/os_sysman_imp.cpp.orig 2021-10-22 17:59:55 UTC
+++ level_zero/tools/source/sysman/linux/os_sysman_imp.cpp
-@@ -45,8 +45,10 @@ ze_result_t LinuxSysmanImp::init() {
+@@ -47,9 +47,11 @@ ze_result_t LinuxSysmanImp::init() {
auto rootPciPathOfGpuDevice = getPciRootPortDirectoryPath(realRootPath);
PlatformMonitoringTech::create(pParentSysmanDeviceImp->deviceHandles, pFsAccess, rootPciPathOfGpuDevice, mapOfSubDeviceIdToPmtObject);
+#ifdef __linux__
pPmuInterface = PmuInterface::create(this);
+
DEBUG_BREAK_IF(nullptr == pPmuInterface);
+#endif
-
- return ZE_RESULT_SUCCESS;
- }
+ auto loc = realRootPath.find_last_of('/');
+ std::string pciBDF = realRootPath.substr(loc + 1, std::string::npos);
+ pFwUtilInterface = FirmwareUtil::create(pciBDF);
--- level_zero/tools/source/sysman/linux/os_sysman_imp.h.orig 2021-10-01 16:31:56 UTC
+++ level_zero/tools/source/sysman/linux/os_sysman_imp.h
@@ -14,7 +14,9 @@