feature: Update Metrics Driver Code to use runtime enable & Disable APIs

Related-To: NEO-15339

Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
This commit is contained in:
Shreyas Kunder
2025-07-10 19:00:03 +00:00
committed by Compute-Runtime-Automation
parent 2c5cbec033
commit e4158208ae
9 changed files with 42 additions and 18 deletions

View File

@@ -59,6 +59,7 @@ const std::vector<std::pair<std::string, uint32_t>> DriverHandleImp::extensionsS
{ZET_INTEL_METRIC_APPEND_MARKER_EXP_NAME, ZET_INTEL_METRIC_APPEND_MARKER_EXP_VERSION_CURRENT},
{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},
#include "additional_extensions_support.inl"
};

View File

@@ -73,8 +73,8 @@ void *ExtensionFunctionAddressHelper::getExtensionFunctionAddress(const std::str
RETURN_FUNC_PTR_IF_EXIST(zexIntelReleaseNetworkInterrupt);
RETURN_FUNC_PTR_IF_EXIST(zetIntelCommandListAppendMarkerExp);
RETURN_FUNC_PTR_IF_EXIST(zetIntelDeviceEnableMetricsExp);
RETURN_FUNC_PTR_IF_EXIST(zetIntelDeviceDisableMetricsExp);
RETURN_FUNC_PTR_IF_EXIST(zetDeviceEnableMetricsExp);
RETURN_FUNC_PTR_IF_EXIST(zetDeviceDisableMetricsExp);
// mutable command list extension
RETURN_FUNC_PTR_IF_EXIST(zeCommandListGetNextCommandIdExp);