feature: add umonitor and umwait synchronization function

Related-To: NEO-9737

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-01-18 11:39:39 +00:00
committed by Compute-Runtime-Automation
parent b266f1f3cc
commit b5f698e0c5
12 changed files with 211 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,6 +20,8 @@ template struct EventImp<uint64_t>;
namespace ult {
void EventFixtureImpl::setUpImpl(int32_t eventPoolHostFlag, int32_t eventPoolTimestampFlag) {
NEO::debugManager.flags.EnableWaitpkg.set(0);
DeviceFixture::setUp();
ze_event_pool_flags_t eventPoolFlags = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,7 @@
#include "shared/source/built_ins/sip.h"
#include "shared/source/helpers/completion_stamp.h"
#include "shared/source/utilities/wait_util.h"
#include "shared/test/common/mocks/mock_command_stream_receiver.h"
#include "shared/test/common/mocks/mock_csr.h"
#include "shared/test/common/mocks/mock_device.h"
@@ -239,6 +240,9 @@ TEST_F(FenceSynchronizeTest, givenInfiniteTimeoutWhenWaitingForFenceCompletionTh
constexpr uint32_t activePartitions = 2;
constexpr uint32_t postSyncOffset = 16;
VariableBackup<bool> backupWaitpkgUse(&NEO::WaitUtils::waitpkgUse, false);
VariableBackup<uint32_t> backupWaitCount(&NEO::WaitUtils::waitCount, 1);
const auto csr = std::make_unique<MockCommandStreamReceiver>(*neoDevice->getExecutionEnvironment(), 0, neoDevice->getDeviceBitfield());
ASSERT_NE(nullptr, csr->getTagAddress());
csr->immWritePostSyncWriteOffset = postSyncOffset;