Files
compute-runtime/shared/source/built_ins/sip_init.cpp
Brandon Yates 013c49db02 fix: change getBindlessDebugSipKernel to also get heapless sip
Rename function to getDebugSipKernel and select either bindless
or heapless depending on mode

Related-to: NEO-8396

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-10-03 20:47:40 +02:00

27 lines
737 B
C++

/*
* Copyright (C) 2021-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/built_ins/sip.h"
#include "shared/source/device/device.h"
#include "shared/source/execution_environment/execution_environment.h"
namespace NEO {
bool SipKernel::initSipKernel(SipKernelType type, Device &device) {
return SipKernel::initSipKernelImpl(type, device, nullptr);
}
const SipKernel &SipKernel::getSipKernel(Device &device, OsContext *context) {
if (context && device.getExecutionEnvironment()->getDebuggingMode() == NEO::DebuggingMode::offline) {
return SipKernel::getDebugSipKernel(device, context);
} else {
return SipKernel::getSipKernelImpl(device);
}
}
} // namespace NEO