Skip to content

Commit 81644a4

Browse files
HoppeMateuszCompute-Runtime-Automation
authored andcommittedOct 25, 2024
fix: disable global bindless when NEO_L0_SYSMAN_NO_CONTEXT_MODE set
Related-To: HSD-13012436157 Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent 3891e88 commit 81644a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎shared/source/device/root_device.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "shared/source/helpers/gfx_core_helper.h"
1818
#include "shared/source/helpers/hw_info.h"
1919
#include "shared/source/memory_manager/memory_manager.h"
20+
#include "shared/source/os_interface/debug_env_reader.h"
2021
#include "shared/source/os_interface/os_context.h"
2122
#include "shared/source/utilities/software_tags_manager.h"
2223

@@ -50,7 +51,10 @@ Device *RootDevice::getRootDevice() const {
5051

5152
void RootDevice::createBindlessHeapsHelper() {
5253

53-
if (ApiSpecificConfig::getGlobalBindlessHeapConfiguration(this->getReleaseHelper()) && ApiSpecificConfig::getBindlessMode(*this)) {
54+
EnvironmentVariableReader envReader;
55+
bool disableGlobalBindless = envReader.getSetting("NEO_L0_SYSMAN_NO_CONTEXT_MODE", false);
56+
57+
if (!disableGlobalBindless && ApiSpecificConfig::getGlobalBindlessHeapConfiguration(this->getReleaseHelper()) && ApiSpecificConfig::getBindlessMode(*this)) {
5458
this->executionEnvironment->rootDeviceEnvironments[getRootDeviceIndex()]->createBindlessHeapsHelper(this, getNumGenericSubDevices() > 1);
5559
}
5660
}

0 commit comments

Comments
 (0)
Please sign in to comment.