Flush task at device init

Resolves: NEO-7642

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2023-01-26 11:56:14 +00:00
committed by Compute-Runtime-Automation
parent fe8a6d98ad
commit 73bd55ad40
15 changed files with 76 additions and 16 deletions

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/os_interface/hw_info_config.h"
@@ -80,6 +81,9 @@ ze_result_t MetricIpSamplingLinuxImp::startMeasurement(uint32_t &notifyEveryNRep
DeviceImp &deviceImp = static_cast<DeviceImp &>(device);
auto csr = deviceImp.getNEODevice()->getDefaultEngine().commandStreamReceiver;
csr->waitForTaskCountWithKmdNotifyFallback(csr->peekTaskCount(), 0, false, NEO::QueueThrottle::MEDIUM);
auto ioctlHelper = drm->getIoctlHelper();
uint32_t euStallFdParameter = ioctlHelper->getEuStallFdParameter();
std::array<uint64_t, 12u> properties;