fix: Add new debug sip kernel type for heapless

Related-to: NEO-7979

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2024-09-09 14:49:02 +00:00
committed by Compute-Runtime-Automation
parent 48dc0a823d
commit 7f0a0ae034
5 changed files with 38 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
#include "shared/source/execution_environment/execution_environment.h"
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/compiler_product_helper.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/helpers/hw_info.h"
@@ -122,7 +123,12 @@ size_t SipKernel::getStateSaveAreaSize(Device *device) const {
SipKernelType SipKernel::getSipKernelType(Device &device) {
if (device.getDebugger() != nullptr) {
return SipKernelType::dbgBindless;
auto &compilerProductHelper = device.getRootDeviceEnvironment().getHelper<CompilerProductHelper>();
if (compilerProductHelper.isHeaplessModeEnabled()) {
return SipKernelType::dbgHeapless;
} else {
return SipKernelType::dbgBindless;
}
}
bool debuggingEnabled = device.getDebugger() != nullptr;
return getSipKernelType(device, debuggingEnabled);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,6 +16,7 @@ enum class SipKernelType : std::uint32_t {
dbgCsr,
dbgCsrLocal,
dbgBindless,
dbgHeapless,
count
};