diff --git a/runtime/dll/linux/os_interface.cpp b/runtime/dll/linux/os_interface.cpp index f8670524aa..50e8fc40f9 100644 --- a/runtime/dll/linux/os_interface.cpp +++ b/runtime/dll/linux/os_interface.cpp @@ -9,6 +9,6 @@ namespace NEO { -bool OSInterface::osEnableLocalMemory = false; +bool OSInterface::osEnableLocalMemory = true; } // namespace NEO \ No newline at end of file diff --git a/unit_tests/linux/CMakeLists.txt b/unit_tests/linux/CMakeLists.txt index d931311f1d..f41959a434 100644 --- a/unit_tests/linux/CMakeLists.txt +++ b/unit_tests/linux/CMakeLists.txt @@ -26,8 +26,8 @@ set(IGDRCL_SRCS_linux_dll_tests ${IGDRCL_SOURCE_DIR}/runtime/dll/linux/allocator_helper.cpp ${IGDRCL_SOURCE_DIR}/runtime/dll/linux/drm_neo_create.cpp ${IGDRCL_SOURCE_DIR}/runtime/dll/linux/options.cpp + ${IGDRCL_SOURCE_DIR}/runtime/dll/linux/os_interface.cpp ${IGDRCL_SOURCE_DIR}/unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp - ${IGDRCL_SOURCE_DIR}/unit_tests/libult/os_interface.cpp ${IGDRCL_SOURCE_DIR}/unit_tests/os_interface/linux/create_drm_memory_manager.cpp ${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h ) diff --git a/unit_tests/linux/main_linux_dll.cpp b/unit_tests/linux/main_linux_dll.cpp index 51dff5b209..7c2659229e 100644 --- a/unit_tests/linux/main_linux_dll.cpp +++ b/unit_tests/linux/main_linux_dll.cpp @@ -376,6 +376,10 @@ TEST(DrmMemoryManagerCreate, whenCallCreateMemoryManagerThenDrmMemoryManagerIsCr executionEnvironment.memoryManager = std::move(drmMemoryManager); } +TEST(OsInterfaceTests, givenOsInterfaceWhenEnableLocalMemoryIsSpecifiedThenItIsSetToTrueOn64Bit) { + EXPECT_TRUE(OSInterface::osEnableLocalMemory); +} + int main(int argc, char **argv) { bool useDefaultListener = false;