feature: support for Metric Scopes

Resolves: NEO-15136

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
This commit is contained in:
Matias Cabral
2025-07-23 20:44:44 +00:00
committed by Compute-Runtime-Automation
parent bbcca97682
commit 93195e3501
21 changed files with 453 additions and 13 deletions

View File

@@ -61,6 +61,7 @@ const std::vector<std::pair<std::string, uint32_t>> DriverHandleImp::extensionsS
{ZET_INTEL_METRIC_SOURCE_ID_EXP_NAME, ZET_INTEL_METRIC_SOURCE_ID_EXP_VERSION_CURRENT},
{ZET_INTEL_METRIC_CALCULATE_EXP_NAME, ZET_INTEL_METRIC_CALCULATE_EXP_VERSION_CURRENT},
{ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_NAME, ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_CURRENT},
{ZET_INTEL_METRIC_SCOPES_EXP_NAME, ZET_INTEL_METRIC_SCOPES_EXP_VERSION_CURRENT},
#include "additional_extensions_support.inl"
};

View File

@@ -117,6 +117,7 @@ class L0GfxCoreHelper : public NEO::ApiGfxCoreHelper {
virtual CopyOffloadMode getDefaultCopyOffloadMode(bool additionalBlitPropertiesSupported) const = 0;
virtual bool isDefaultCmdListWithCopyOffloadSupported(bool additionalBlitPropertiesSupported) const = 0;
virtual bool bcsSplitAggregatedModeEnabled() const = 0;
virtual bool supportMetricsAggregation() const = 0;
protected:
L0GfxCoreHelper() = default;
@@ -176,6 +177,7 @@ class L0GfxCoreHelperHw : public L0GfxCoreHelper {
CopyOffloadMode getDefaultCopyOffloadMode(bool additionalBlitPropertiesSupported) const override;
bool isDefaultCmdListWithCopyOffloadSupported(bool additionalBlitPropertiesSupported) const override;
bool bcsSplitAggregatedModeEnabled() const override;
bool supportMetricsAggregation() const override;
protected:
L0GfxCoreHelperHw() = default;

View File

@@ -149,4 +149,9 @@ uint64_t L0GfxCoreHelperHw<Family>::getIpSamplingIpMask() const {
return 0;
}
template <typename Family>
bool L0GfxCoreHelperHw<Family>::supportMetricsAggregation() const {
return false;
}
} // namespace L0

View File

@@ -222,4 +222,9 @@ uint64_t L0GfxCoreHelperHw<Family>::getOaTimestampValidBits() const {
return oaTimestampValidBits;
};
template <typename Family>
bool L0GfxCoreHelperHw<Family>::supportMetricsAggregation() const {
return false;
}
} // namespace L0

View File

@@ -215,6 +215,11 @@ uint64_t L0GfxCoreHelperHw<Family>::getIpSamplingIpMask() const {
return ipSamplingIpMaskXe;
}
template <>
bool L0GfxCoreHelperHw<Family>::supportMetricsAggregation() const {
return false;
}
template class L0GfxCoreHelperHw<Family>;
} // namespace L0