mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: stop direct submission before oa configuration activation
Related-To: NEO-12778 Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
01a0b8e7f7
commit
fe1fd22371
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "shared/source/os_interface/performance_counters.h"
|
||||
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/utilities/perf_counter.h"
|
||||
@@ -282,4 +283,16 @@ bool PerformanceCounters::getApiReport(const TagNodeBase *performanceCounters, c
|
||||
|
||||
return metricsLibrary->hwCountersGetReport(performanceCounters->getQueryHandleRef(), 0, 1, outputSize, pInputParam);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// PerformanceCounters::flushCommandBufferCallback
|
||||
//////////////////////////////////////////////////////
|
||||
MetricsLibraryApi::StatusCode ML_STDCALL PerformanceCounters::flushCommandBufferCallback(MetricsLibraryApi::ClientHandle_1_0 handle) {
|
||||
Device *device = static_cast<Device *>(handle.data);
|
||||
if (device) {
|
||||
device->stopDirectSubmissionAndWaitForCompletion();
|
||||
return MetricsLibraryApi::StatusCode::Success;
|
||||
}
|
||||
return MetricsLibraryApi::StatusCode::Failed;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user