mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Metrics Append Streamer Marker Multi-Device Support
Added multi-device support for zetCommandListAppendMetricStreamerMarker Related-To: LOCI-2492 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f0070df35a
commit
a7f526c980
@@ -769,7 +769,13 @@ ze_result_t MetricQuery::appendStreamerMarker(CommandList &commandList,
|
||||
zet_metric_streamer_handle_t hMetricStreamer,
|
||||
uint32_t value) {
|
||||
|
||||
auto &metricContext = commandList.device->getMetricContext();
|
||||
DeviceImp *pDeviceImp = static_cast<DeviceImp *>(commandList.device);
|
||||
|
||||
if (pDeviceImp->isMultiDeviceCapable()) {
|
||||
// Use one of the sub-device contexts to append to command list.
|
||||
pDeviceImp = static_cast<DeviceImp *>(pDeviceImp->subDevices[0]);
|
||||
}
|
||||
auto &metricContext = pDeviceImp->getMetricContext();
|
||||
auto &metricsLibrary = metricContext.getMetricsLibrary();
|
||||
|
||||
const uint32_t streamerMarkerHighBitsShift = 25;
|
||||
|
||||
Reference in New Issue
Block a user