File tree Expand file tree Collapse file tree 9 files changed +17
-10
lines changed
Expand file tree Collapse file tree 9 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2018 Intel Corporation
2+ * Copyright (C) 2018-2019 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
66 */
77
8+ #include " runtime/memory_manager/memory_constants.h"
89#include " runtime/os_interface/windows/os_interface.h"
9-
1010namespace OCLRT {
1111
12- bool OSInterface::osEnableLocalMemory = true ;
12+ bool OSInterface::osEnableLocalMemory = true && is64bit ;
1313
1414} // namespace OCLRT
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ add_custom_target(run_unit_tests ALL)
3131
3232set (IGDRCL_SRCS_tests_local
3333 ${CMAKE_CURRENT_SOURCE_DIR} /CMakeLists.txt
34+ ${CMAKE_CURRENT_SOURCE_DIR} /libult/os_interface.cpp
3435 ${CMAKE_CURRENT_SOURCE_DIR} /tests_configuration.h
3536 ${CMAKE_CURRENT_SOURCE_DIR} /ult_configuration.cpp
3637)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/common.cmake)
1111list (APPEND IGDRCL_AUB_TESTS__TARGET_OBJECTS
1212 ${CMAKE_CURRENT_SOURCE_DIR} /aub_tests_configuration.cpp
1313 ${IGDRCL_SOURCE_DIR} /runtime/aub/aub_stream_interface.cpp
14+ ${IGDRCL_SOURCE_DIR} /unit_tests/libult/os_interface.cpp
1415 $<TARGET_OBJECTS:${BUILTINS_SOURCES_LIB_NAME} >
1516 $<TARGET_OBJECTS:${SCHEDULER_BINARY_LIB_NAME} >
1617 $<TARGET_OBJECTS:igdrcl_libult>
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ set(IGDRCL_SRCS_LIB_ULT
3737 ${IGDRCL_SOURCE_DIR} /unit_tests/utilities/debug_settings_reader_creator.cpp
3838 ${CMAKE_CURRENT_SOURCE_DIR} /mock_gfx_family.h
3939 ${CMAKE_CURRENT_SOURCE_DIR} /mock_gfx_family.cpp
40- ${CMAKE_CURRENT_SOURCE_DIR} /os_interface.cpp
4140)
4241
4342set (IGDRCL_SRCS_LIB_ULT_WINDOWS
Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2017-2018 Intel Corporation
2+ # Copyright (C) 2017-2019 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -8,6 +8,7 @@ set(IGDRCL_SRCS_linux_tests
88 ${CMAKE_CURRENT_SOURCE_DIR} /linux_tests_configuration.cpp
99 ${CMAKE_CURRENT_SOURCE_DIR} /main_linux.cpp
1010 ${IGDRCL_SOURCE_DIR} /unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp
11+ ${IGDRCL_SOURCE_DIR} /unit_tests/libult/os_interface.cpp
1112 ${IGDRCL_SOURCE_DIR} /unit_tests/os_interface/linux/allocator_helper.cpp
1213 ${IGDRCL_SOURCE_DIR} /unit_tests/os_interface/linux/options .cpp
1314)
@@ -23,6 +24,7 @@ set(IGDRCL_SRCS_linux_dll_tests
2324 ${IGDRCL_SOURCE_DIR} /runtime/dll/linux/drm_neo_create.cpp
2425 ${IGDRCL_SOURCE_DIR} /runtime/dll/linux/options .cpp
2526 ${IGDRCL_SOURCE_DIR} /unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp
27+ ${IGDRCL_SOURCE_DIR} /unit_tests/libult/os_interface.cpp
2628)
2729
2830if (IGDRCL__LIBVA_FOUND)
Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2017-2018 Intel Corporation
2+ # Copyright (C) 2017-2019 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -8,6 +8,7 @@ project(igdrcl_mt_tests)
88
99add_executable (igdrcl_mt_tests EXCLUDE_FROM_ALL
1010 ${CMAKE_CURRENT_SOURCE_DIR} /CMakeLists.txt
11+ ${IGDRCL_SOURCE_DIR} /unit_tests/libult/os_interface.cpp
1112 ${IGDRCL_SOURCE_DIR} /unit_tests/ult_configuration.cpp
1213 ${IGDRCL_SOURCE_DIR} /runtime/aub/aub_stream_interface.cpp
1314 $<TARGET_OBJECTS:igdrcl_libult>
Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2017-2018 Intel Corporation
2+ # Copyright (C) 2017-2019 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -9,6 +9,7 @@ add_executable(igdrcl_tbx_tests
99 ${CMAKE_CURRENT_SOURCE_DIR} /tbx_tests_configuration.cpp
1010 ${IGDRCL_SOURCE_DIR} /runtime/aub/aub_stream_interface.cpp
1111 ${IGDRCL_SOURCE_DIR} /runtime/dll/create_command_stream.cpp
12+ ${IGDRCL_SOURCE_DIR} /unit_tests/libult/os_interface.cpp
1213 ${IGDRCL_SOURCE_DIR} /unit_tests/options .cpp
1314 $<TARGET_OBJECTS:igdrcl_libult>
1415)
Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2018 Intel Corporation
2+ # Copyright (C) 2018-2019 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -16,6 +16,7 @@ set(NEO_IGDRCL_WINDOWS_DLL_TESTS_TARGET_OBJECTS
1616add_executable (igdrcl_windows_dll_tests
1717 ${NEO_IGDRCL_WINDOWS_DLL_TESTS_TARGET_OBJECTS}
1818 ${IGDRCL_SOURCE_DIR} /runtime/aub/aub_stream_interface.cpp
19+ ${IGDRCL_SOURCE_DIR} /runtime/dll/windows/os_interface.cpp
1920 ${IGDRCL_SOURCE_DIR} /runtime/os_interface/windows/wddm/wddm_create.cpp
2021 ${IGDRCL_SOURCE_DIR} /unit_tests/ult_configuration.cpp
2122 ${CMAKE_CURRENT_SOURCE_DIR} /wddm_create_tests.cpp
Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2018 Intel Corporation
2+ * Copyright (C) 2018-2019 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
66 */
77
8+ #include " runtime/memory_manager/memory_constants.h"
89#include " runtime/os_interface/windows/os_interface.h"
910#include " test.h"
1011
1112TEST (osInterfaceTests, osInterfaceLocalMemoryEnabledByDefault) {
12- EXPECT_TRUE ( OCLRT::OSInterface::osEnableLocalMemory);
13+ EXPECT_EQ (is64bit, OCLRT::OSInterface::osEnableLocalMemory);
1314}
You can’t perform that action at this time.
0 commit comments