mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Multiple engine support for Sysman Engine API
- multiple engines support for Sysman Engine API - added engineQuery support - opencl ULTs to validate engineQuery - Sysman ULTs to validate engine APIs Change-Id: I3b4d3a96a4cdca7dd9957f6a57f7b1bf900582d3 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com> Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cf8f0c6437
commit
8f52561307
@@ -8,6 +8,7 @@
|
||||
#pragma once
|
||||
#include <level_zero/zes_api.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
struct _zes_engine_handle_t {
|
||||
@@ -27,11 +28,10 @@ class Engine : _zes_engine_handle_t {
|
||||
return static_cast<Engine *>(handle);
|
||||
}
|
||||
inline zes_engine_handle_t toHandle() { return this; }
|
||||
bool initSuccess = false;
|
||||
};
|
||||
|
||||
struct EngineHandleContext {
|
||||
EngineHandleContext(OsSysman *pOsSysman) : pOsSysman(pOsSysman){};
|
||||
EngineHandleContext(OsSysman *pOsSysman);
|
||||
~EngineHandleContext();
|
||||
|
||||
void init();
|
||||
@@ -42,7 +42,7 @@ struct EngineHandleContext {
|
||||
std::vector<Engine *> handleList = {};
|
||||
|
||||
private:
|
||||
void createHandle(zes_engine_group_t type);
|
||||
void createHandle(zes_engine_group_t engineType, uint32_t engineInstance);
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user