From 54269d9791c40e819a92b74741e50ad1d5931c79 Mon Sep 17 00:00:00 2001 From: "Venevtsev, Igor" Date: Fri, 30 Nov 2018 10:25:47 +0100 Subject: [PATCH] Turn on Windows OS support for Local Memory Change-Id: I83ff6d787d18a621d6213fbe32166d00d3e31ea9 --- runtime/dll/windows/os_interface.cpp | 4 ++-- unit_tests/windows/CMakeLists.txt | 3 ++- unit_tests/windows/os_interface_tests.cpp | 13 +++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 unit_tests/windows/os_interface_tests.cpp diff --git a/runtime/dll/windows/os_interface.cpp b/runtime/dll/windows/os_interface.cpp index 5efcf96aa7..32e7f1aef5 100644 --- a/runtime/dll/windows/os_interface.cpp +++ b/runtime/dll/windows/os_interface.cpp @@ -9,6 +9,6 @@ namespace OCLRT { -bool OSInterface::osEnableLocalMemory = false; +bool OSInterface::osEnableLocalMemory = true; -} // namespace OCLRT \ No newline at end of file +} // namespace OCLRT diff --git a/unit_tests/windows/CMakeLists.txt b/unit_tests/windows/CMakeLists.txt index 4d4939f054..f3fdc97bca 100644 --- a/unit_tests/windows/CMakeLists.txt +++ b/unit_tests/windows/CMakeLists.txt @@ -11,6 +11,7 @@ add_executable(igdrcl_windows_dll_tests ${IGDRCL_SOURCE_DIR}/runtime/os_interface/windows/wddm/wddm_create.cpp ${IGDRCL_SOURCE_DIR}/unit_tests/ult_configuration.cpp ${CMAKE_CURRENT_SOURCE_DIR}/wddm_create_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/os_interface_tests.cpp $ $ $ @@ -37,4 +38,4 @@ add_dependencies(run_unit_tests run_windows_dll_tests) set_target_properties(igdrcl_windows_dll_tests PROPERTIES FOLDER ${TEST_PROJECTS_FOLDER}) set_target_properties(run_windows_dll_tests PROPERTIES FOLDER ${TEST_PROJECTS_FOLDER}) -endif() \ No newline at end of file +endif() diff --git a/unit_tests/windows/os_interface_tests.cpp b/unit_tests/windows/os_interface_tests.cpp new file mode 100644 index 0000000000..b605e93c44 --- /dev/null +++ b/unit_tests/windows/os_interface_tests.cpp @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2018 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#include "runtime/os_interface/windows/os_interface.h" +#include "test.h" + +TEST(osInterfaceTests, osInterfaceLocalMemoryEnabledByDefault) { + EXPECT_TRUE(OCLRT::OSInterface::osEnableLocalMemory); +}