Skip to content

Commit 3a5209c

Browse files
committed
Disable osEnableLocalMemory on 32 bits
Change-Id: Id405a57064d17293ede48f82992ab1bde4f3b9ce
1 parent 5c66211 commit 3a5209c

File tree

9 files changed

+17
-10
lines changed

9 files changed

+17
-10
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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-
1010
namespace OCLRT {
1111

12-
bool OSInterface::osEnableLocalMemory = true;
12+
bool OSInterface::osEnableLocalMemory = true && is64bit;
1313

1414
} // namespace OCLRT

unit_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ add_custom_target(run_unit_tests ALL)
3131

3232
set(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
)

unit_tests/aub_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/common.cmake)
1111
list(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>

unit_tests/libult/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

4342
set(IGDRCL_SRCS_LIB_ULT_WINDOWS

unit_tests/linux/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

2830
if(IGDRCL__LIBVA_FOUND)

unit_tests/mt_tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

99
add_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>

unit_tests/tbx/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
)

unit_tests/windows/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
1616
add_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
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
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

1112
TEST(osInterfaceTests, osInterfaceLocalMemoryEnabledByDefault) {
12-
EXPECT_TRUE(OCLRT::OSInterface::osEnableLocalMemory);
13+
EXPECT_EQ(is64bit, OCLRT::OSInterface::osEnableLocalMemory);
1314
}

0 commit comments

Comments
 (0)