feature: improve waiting and signaling Events via KMD calls

Related-To: NEO-8179

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-11-22 15:11:49 +00:00
committed by Compute-Runtime-Automation
parent 7ffd151ac3
commit aba1cd8f9c
12 changed files with 62 additions and 162 deletions

View File

@@ -15,7 +15,6 @@ set(NEO_CORE_COMMAND_CONTAINER
${CMAKE_CURRENT_SOURCE_DIR}/encode_alu_helper.h
${CMAKE_CURRENT_SOURCE_DIR}/encode_compute_mode_bdw_and_later.inl
${CMAKE_CURRENT_SOURCE_DIR}/encode_compute_mode_tgllp_and_later.inl
${CMAKE_CURRENT_SOURCE_DIR}/encode_interrupt_helper.h
${CMAKE_CURRENT_SOURCE_DIR}/encode_surface_state.h
${CMAKE_CURRENT_SOURCE_DIR}/implicit_scaling.cpp
${CMAKE_CURRENT_SOURCE_DIR}/implicit_scaling.h

View File

@@ -1,30 +0,0 @@
/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
/*
* Copyright (C)2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/debug_settings/debug_settings_manager.h"
namespace NEO {
struct EncodeUserInterruptHelper {
static constexpr int32_t afterSemaphoreMask = 0b01;
static constexpr int32_t onSignalingFenceMask = 0b10;
static bool isOperationAllowed(int32_t mode) {
const int32_t flagValue = NEO::DebugManager.flags.ProgramUserInterruptOnResolvedDependency.get();
return (flagValue != -1 && (flagValue & mode));
}
};
} // namespace NEO