mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Sysman: Add support for sysman APIs
In level_zero/sysman directory This change: - Adds support for accessing linux based filesystem - Add support for telemetry - Add support for LinuxSysmanImp Related-To: LOCI-3889 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3ebcb30244
commit
6968d26f3a
@@ -1,11 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "level_zero/core/source/driver/driver_handle_imp.h"
|
||||
#include "level_zero/sysman/source/sysman_driver_handle_imp.h"
|
||||
|
||||
using namespace L0;
|
||||
|
||||
@@ -14,4 +15,8 @@ void __attribute__((destructor)) driverHandleDestructor() {
|
||||
delete GlobalDriver;
|
||||
GlobalDriver = nullptr;
|
||||
}
|
||||
if (Sysman::GlobalSysmanDriver != nullptr) {
|
||||
delete Sysman::GlobalSysmanDriver;
|
||||
Sysman::GlobalSysmanDriver = nullptr;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "level_zero/core/source/driver/driver_handle_imp.h"
|
||||
#include "level_zero/sysman/source/sysman_driver_handle_imp.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
@@ -17,6 +18,10 @@ BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
||||
delete GlobalDriver;
|
||||
GlobalDriver = nullptr;
|
||||
}
|
||||
if (Sysman::GlobalSysmanDriver != nullptr) {
|
||||
delete Sysman::GlobalSysmanDriver;
|
||||
Sysman::GlobalSysmanDriver = nullptr;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user