Turn on Windows OS support for Local Memory

Change-Id: I83ff6d787d18a621d6213fbe32166d00d3e31ea9
This commit is contained in:
Venevtsev, Igor
2018-11-30 10:25:47 +01:00
committed by sys_ocldev
parent 38416a2d83
commit 54269d9791
3 changed files with 17 additions and 3 deletions

View File

@ -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
$<TARGET_OBJECTS:igdrcl_libult>
$<TARGET_OBJECTS:igdrcl_libult_cs>
$<TARGET_OBJECTS:igdrcl_libult_env>
@ -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()
endif()

View File

@ -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);
}