mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
- 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>
29 lines
683 B
C++
29 lines
683 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <level_zero/zes_api.h>
|
|
|
|
#include <map>
|
|
|
|
namespace L0 {
|
|
|
|
struct OsSysman;
|
|
using namespace std;
|
|
|
|
class OsEngine {
|
|
public:
|
|
virtual ze_result_t getActivity(zes_engine_stats_t *pStats) = 0;
|
|
virtual ze_result_t getProperties(zes_engine_properties_t &properties) = 0;
|
|
static OsEngine *create(OsSysman *pOsSysman, zes_engine_group_t engineType, uint32_t engineInstance);
|
|
static ze_result_t getNumEngineTypeAndInstances(std::multimap<zes_engine_group_t, uint32_t> &engineGroupInstance, OsSysman *pOsSysman);
|
|
virtual ~OsEngine() = default;
|
|
};
|
|
|
|
} // namespace L0
|