mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add debug api handlers 2
Related-To: NEO-4554 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a3c2a1eb44
commit
6356de6511
@@ -91,6 +91,7 @@ struct Device : _ze_device_handle_t {
|
||||
virtual uint32_t getPlatformInfo() const = 0;
|
||||
virtual MetricContext &getMetricContext() = 0;
|
||||
virtual DebugSession *getDebugSession(const zet_debug_config_t &config) = 0;
|
||||
virtual void removeDebugSession() = 0;
|
||||
|
||||
virtual ze_result_t activateMetricGroups(uint32_t count,
|
||||
zet_metric_group_handle_t *phMetricGroups) = 0;
|
||||
|
||||
@@ -59,6 +59,7 @@ struct DeviceImp : public Device {
|
||||
uint32_t getPlatformInfo() const override;
|
||||
MetricContext &getMetricContext() override;
|
||||
DebugSession *getDebugSession(const zet_debug_config_t &config) override;
|
||||
void removeDebugSession() override { debugSession.release(); }
|
||||
|
||||
uint32_t getMaxNumHwThreads() const override;
|
||||
ze_result_t activateMetricGroups(uint32_t count,
|
||||
|
||||
@@ -250,6 +250,8 @@ struct Mock<Device> : public Device {
|
||||
DebugSession *getDebugSession(const zet_debug_config_t &config) override {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void removeDebugSession() override {}
|
||||
};
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user